mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-14 19:59:03 +00:00
Code refactoring (moving import ctypes to be used only when needed)
This commit is contained in:
3
thirdparty/ansistrm/ansistrm.py
vendored
3
thirdparty/ansistrm/ansistrm.py
vendored
@@ -1,7 +1,6 @@
|
||||
#
|
||||
# Copyright (C) 2010-2012 Vinay Sajip. All rights reserved. Licensed under the new BSD license.
|
||||
#
|
||||
import ctypes
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
@@ -84,6 +83,8 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
||||
}
|
||||
|
||||
def output_colorized(self, message):
|
||||
import ctypes
|
||||
|
||||
parts = self.ansi_esc.split(message)
|
||||
write = self.stream.write
|
||||
h = None
|
||||
|
||||
Reference in New Issue
Block a user