mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Implementation of an Issue #149
This commit is contained in:
parent
f358ab2e73
commit
1af81c0de4
5 changed files with 17 additions and 2 deletions
3
thirdparty/ansistrm/ansistrm.py
vendored
3
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -39,11 +39,12 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
}
|
||||
csi = '\x1b['
|
||||
reset = '\x1b[0m'
|
||||
disable_coloring = False
|
||||
|
||||
@property
|
||||
def is_tty(self):
|
||||
isatty = getattr(self.stream, 'isatty', None)
|
||||
return isatty and isatty()
|
||||
return isatty and isatty() and not self.disable_coloring
|
||||
|
||||
def emit(self, record):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue