mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Fixes #3680
This commit is contained in:
parent
03224401ab
commit
4cc13d3c1e
5 changed files with 28 additions and 20 deletions
4
thirdparty/ansistrm/ansistrm.py
vendored
4
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -20,7 +20,7 @@ if IS_WIN:
|
|||
ctypes.windll.kernel32.SetConsoleTextAttribute.argtypes = [ctypes.wintypes.HANDLE, ctypes.wintypes.WORD]
|
||||
ctypes.windll.kernel32.SetConsoleTextAttribute.restype = ctypes.wintypes.BOOL
|
||||
|
||||
def stdoutencode(data): # Cross-referenced function
|
||||
def stdoutEncode(data): # Cross-referenced function
|
||||
raise NotImplementedError
|
||||
|
||||
class ColorizingStreamHandler(logging.StreamHandler):
|
||||
|
|
@ -56,7 +56,7 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
|
||||
def emit(self, record):
|
||||
try:
|
||||
message = stdoutencode(self.format(record))
|
||||
message = stdoutEncode(self.format(record))
|
||||
stream = self.stream
|
||||
|
||||
if not self.is_tty:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue