1. Pypy
  2. Untitled project
  3. pypy

Commits

Amaury Forgeot d'Arc  committed b1e2a52

No more differences in runicode.py between the two branches.
(I'm not sure why py3k needs this _impl split)

  • Participants
  • Parent commits a79482e
  • Branches default

Comments (0)

Files changed (1)

File pypy/rlib/runicode.py

View file
  • Ignore whitespace
                          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