Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r57536:b1e2a52edb57
Date: 2012-09-24 23:54 +0200
http://bitbucket.org/pypy/pypy/changeset/b1e2a52edb57/
Log: No more differences in runicode.py between the two branches. (I'm
not sure why py3k needs this _impl split)
diff --git a/pypy/rlib/runicode.py b/pypy/rlib/runicode.py
--- a/pypy/rlib/runicode.py
+++ b/pypy/rlib/runicode.py
@@ -259,6 +259,11 @@
allow_surrogates=False):
if errorhandler is None:
errorhandler = raise_unicode_exception_encode
+ return unicode_encode_utf_8_impl(s, size, errors, errorhandler,
+ allow_surrogates=allow_surrogates)
+
+def unicode_encode_utf_8_impl(s, size, errors, errorhandler,
+ allow_surrogates=False):
assert(size >= 0)
result = StringBuilder(size)
pos = 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit