mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 14:11:29 +00:00
Fixes #3680
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user