Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r82248:bfa51a294a82
Date: 2016-02-15 09:40 +0100
http://bitbucket.org/pypy/pypy/changeset/bfa51a294a82/

Log:    backout f5bb0b58e857: breaks translation (this should be RPython)

diff --git a/pypy/module/sys/interp_encoding.py 
b/pypy/module/sys/interp_encoding.py
--- a/pypy/module/sys/interp_encoding.py
+++ b/pypy/module/sys/interp_encoding.py
@@ -42,7 +42,7 @@
 
 def _getfilesystemencoding(space):
     encoding = base_encoding
-    if rlocale.HAVE_LANGINFO and hasattr(rlocale, "CODESET"):
+    if rlocale.HAVE_LANGINFO and rlocale.CODESET:
         try:
             oldlocale = rlocale.setlocale(rlocale.LC_CTYPE, None)
             rlocale.setlocale(rlocale.LC_CTYPE, "")
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to