mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
minor import fix
This commit is contained in:
parent
f219b39980
commit
115cd3479e
|
@ -61,7 +61,6 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
||||||
def output_colorized(self, message):
|
def output_colorized(self, message):
|
||||||
self.stream.write(message)
|
self.stream.write(message)
|
||||||
else:
|
else:
|
||||||
import ctypes
|
|
||||||
import re
|
import re
|
||||||
ansi_esc = re.compile(r'\x1b\[((?:\d+)(?:;(?:\d+))*)m')
|
ansi_esc = re.compile(r'\x1b\[((?:\d+)(?:;(?:\d+))*)m')
|
||||||
|
|
||||||
|
@ -77,6 +76,8 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
||||||
}
|
}
|
||||||
|
|
||||||
def output_colorized(self, message):
|
def output_colorized(self, message):
|
||||||
|
import ctypes
|
||||||
|
|
||||||
parts = self.ansi_esc.split(message)
|
parts = self.ansi_esc.split(message)
|
||||||
write = self.stream.write
|
write = self.stream.write
|
||||||
h = None
|
h = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user