mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor patch
This commit is contained in:
parent
a75d3ed0b8
commit
50ac3aab7a
|
@ -777,7 +777,7 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
|
|||
if kb.get("multiThreadMode"):
|
||||
logging._acquireLock()
|
||||
|
||||
if isinstance(data, basestring):
|
||||
if isinstance(data, unicode):
|
||||
message = stdoutencode(data)
|
||||
else:
|
||||
message = data
|
||||
|
|
|
@ -141,7 +141,7 @@ def stdoutencode(data):
|
|||
try:
|
||||
# Reference: http://bugs.python.org/issue1602
|
||||
if IS_WIN:
|
||||
output = data.encode('ascii', "replace")
|
||||
output = data.encode("ascii", "replace")
|
||||
|
||||
if output != data:
|
||||
warnMsg = "cannot properly display Unicode characters "
|
||||
|
|
Loading…
Reference in New Issue
Block a user