mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-08 01:13:17 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue