Author: Carl Friedrich Bolz <[email protected]>
Branch: space-newtext
Changeset: r88321:788a8ad341f2
Date: 2016-11-11 12:56 +0100
http://bitbucket.org/pypy/pypy/changeset/788a8ad341f2/
Log: call spacebind explicitly here
diff --git a/pypy/module/_codecs/interp_codecs.py
b/pypy/module/_codecs/interp_codecs.py
--- a/pypy/module/_codecs/interp_codecs.py
+++ b/pypy/module/_codecs/interp_codecs.py
@@ -274,7 +274,8 @@
for error in ("strict", "ignore", "replace", "xmlcharrefreplace",
"backslashreplace"):
name = error + "_errors"
- state.codec_error_registry[error] =
space.wrap(interp2app(globals()[name]))
+ state.codec_error_registry[error] = interp2app(
+ globals()[name]).spacebind(space)
@unwrap_spec(errors=str)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit