add missing import
This commit is contained in:
parent
92610bf486
commit
e70bb04f82
@ -424,6 +424,7 @@ def run():
|
|||||||
_encoding = sys.stdout.encoding or sys.getdefaultencoding()
|
_encoding = sys.stdout.encoding or sys.getdefaultencoding()
|
||||||
except:
|
except:
|
||||||
_encoding = "UTF-8"
|
_encoding = "UTF-8"
|
||||||
|
import codecs
|
||||||
sys.stdout = codecs.getwriter(_encoding)(sys.stdout.detach(),
|
sys.stdout = codecs.getwriter(_encoding)(sys.stdout.detach(),
|
||||||
'backslashreplace')
|
'backslashreplace')
|
||||||
sys.stderr = codecs.getwriter(_encoding)(sys.stderr.detach(),
|
sys.stderr = codecs.getwriter(_encoding)(sys.stderr.detach(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user