[pypy-commit] pypy default: backout f5bb0b58e857: breaks translation (this should be RPython)
arigo
pypy.commits at gmail.com
Mon Feb 15 03:40:57 EST 2016
Author: Armin Rigo <arigo at 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, "")
More information about the pypy-commit
mailing list