mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Bug fix for Python3 (drei lack of color output)
This commit is contained in:
parent
ddf67bb876
commit
79d0c83f8f
2 changed files with 3 additions and 3 deletions
4
thirdparty/ansistrm/ansistrm.py
vendored
4
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -94,7 +94,6 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
|
||||
def output_colorized(self, message):
|
||||
parts = self.ansi_esc.split(message)
|
||||
write = self.stream.write
|
||||
h = None
|
||||
fd = getattr(self.stream, 'fileno', None)
|
||||
|
||||
|
|
@ -108,7 +107,8 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
text = parts.pop(0)
|
||||
|
||||
if text:
|
||||
write(text)
|
||||
self.stream.write(text)
|
||||
self.stream.flush()
|
||||
|
||||
if parts:
|
||||
params = parts.pop(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue