mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Minor refactoring
This commit is contained in:
parent
053b7d12b4
commit
14b7e655a9
5 changed files with 3 additions and 10 deletions
4
thirdparty/ansistrm/ansistrm.py
vendored
4
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -1,6 +1,7 @@
|
|||
#
|
||||
# Copyright (C) 2010-2012 Vinay Sajip. All rights reserved. Licensed under the new BSD license.
|
||||
#
|
||||
import ctypes
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
|
@ -69,7 +70,6 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
def output_colorized(self, message):
|
||||
self.stream.write(message)
|
||||
else:
|
||||
import re
|
||||
ansi_esc = re.compile(r'\x1b\[((?:\d+)(?:;(?:\d+))*)m')
|
||||
|
||||
nt_color_map = {
|
||||
|
|
@ -84,8 +84,6 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
}
|
||||
|
||||
def output_colorized(self, message):
|
||||
import ctypes
|
||||
|
||||
parts = self.ansi_esc.split(message)
|
||||
write = self.stream.write
|
||||
h = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue