mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
fix for properly displaying unicode characters to sys.stdout (known python issue)
This commit is contained in:
parent
a3db3c03c1
commit
37590520c4
|
@ -22,6 +22,8 @@ with sqlmap; if not, write to the Free Software Foundation, Inc., 51
|
|||
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
"""
|
||||
|
||||
import codecs
|
||||
import locale
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
@ -30,6 +32,8 @@ import warnings
|
|||
|
||||
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
|
||||
|
||||
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
|
||||
|
||||
try:
|
||||
import psyco
|
||||
psyco.full()
|
||||
|
|
Loading…
Reference in New Issue
Block a user