add missing import

This commit is contained in:
Paul Franklin 2015-03-01 14:53:14 -08:00
parent 92610bf486
commit e70bb04f82

View File

@ -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(),