mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +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:
|
try:
|
||||||
sys.stdout.write(data.encode(sys.stdout.encoding))
|
sys.stdout.write(data.encode(sys.stdout.encoding))
|
||||||
except:
|
except:
|
||||||
sys.stdout.write(data.encode(UNICODE_ENCODING, errors="replace"))
|
sys.stdout.write(data.encode(UNICODE_ENCODING))
|
||||||
finally:
|
finally:
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user