Author: Matti Picus <[email protected]>
Branch:
Changeset: r98655:9dce88120ef6
Date: 2020-02-03 23:30 +0200
http://bitbucket.org/pypy/pypy/changeset/9dce88120ef6/
Log: back out 0395c16d6bbe, it did not improve benchmarks
diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/interp_textio.py
--- a/pypy/module/_io/interp_textio.py
+++ b/pypy/module/_io/interp_textio.py
@@ -14,7 +14,6 @@
from rpython.rlib.rutf8 import (check_utf8, next_codepoint_pos,
codepoints_in_utf8, codepoints_in_utf8,
Utf8StringBuilder)
-from rpython.rlib import rlocale
STATE_ZERO, STATE_OK, STATE_DETACHED = range(3)
@@ -236,15 +235,6 @@
if encoding is not None:
return space.newtext(encoding)
- # Try to shortcut the app-level call if locale.CODESET works
- if _WINDOWS:
- return space.newtext(rlocale.getdefaultlocale()[1])
- else:
- if rlocale.HAVE_LANGINFO:
- codeset = rlocale.nl_langinfo(rlocale.CODESET)
- if codeset:
- return space.newtext(codeset)
-
try:
w_locale = space.call_method(space.builtin, '__import__',
space.newtext('locale'))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit