Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63606:1edbc7eba9cb
Date: 2013-04-24 22:53 -0700
http://bitbucket.org/pypy/pypy/changeset/1edbc7eba9cb/
Log: fix io_encoding erroneously a bool
diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -476,7 +476,7 @@
import os
readenv = not ignore_environment
- io_encoding = readenv and os.getenv("PYTHONIOENCODING")
+ io_encoding = os.getenv("PYTHONIOENCODING") if readenv else None
initstdio(io_encoding, unbuffered)
mainmodule = type(sys)('__main__')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit