mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
fix for a bug reported by malice.anon@gmail.com (TypeError: encode() takes no keyword arguments)
This commit is contained in:
parent
9fc0bedea8
commit
f7feebe0df
|
@ -587,7 +587,7 @@ def dataToStdout(data, forceOutput=False):
|
|||
try:
|
||||
sys.stdout.write(data.encode(sys.stdout.encoding))
|
||||
except:
|
||||
sys.stdout.write(data.encode(UNICODE_ENCODING, errors="replace"))
|
||||
sys.stdout.write(data.encode(UNICODE_ENCODING))
|
||||
finally:
|
||||
sys.stdout.flush()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user