mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +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):
|
||||
self.stream.write(message)
|
||||
else:
|
||||
import ctypes
|
||||
import re
|
||||
ansi_esc = re.compile(r'\x1b\[((?:\d+)(?:;(?:\d+))*)m')
|
||||
|
||||
|
@ -77,6 +76,8 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
}
|
||||
|
||||
def output_colorized(self, message):
|
||||
import ctypes
|
||||
|
||||
parts = self.ansi_esc.split(message)
|
||||
write = self.stream.write
|
||||
h = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user