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()
|
||||
except:
|
||||
_encoding = "UTF-8"
|
||||
import codecs
|
||||
sys.stdout = codecs.getwriter(_encoding)(sys.stdout.detach(),
|
||||
'backslashreplace')
|
||||
sys.stderr = codecs.getwriter(_encoding)(sys.stderr.detach(),
|
||||
|
Loading…
Reference in New Issue
Block a user