[pypy-commit] pypy default: No more differences in runicode.py between the two branches.
amauryfa
noreply at buildbot.pypy.org
Mon Sep 24 23:55:27 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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
More information about the pypy-commit
mailing list