1. pypyja
  2. pypy

Commits

Amaury Forgeot d'Arc  committed 809b97e

Also fix ropeunicodeobject.

  • Participants
  • Parent commits a2b4945
  • Branches py3k

Comments (0)

Files changed (2)

File pypy/objspace/std/ropeunicodeobject.py

View file
 from pypy.objspace.std.noneobject import W_NoneObject
 from pypy.rlib import rope
 from pypy.rlib.rstring import StringBuilder
-from pypy.rlib.runicode import unicode_encode_unicode_escape
+from pypy.rlib.runicode import unicode_escape_nonprintable
 from pypy.objspace.std.sliceobject import W_SliceObject, normalize_simple_slice
 from pypy.objspace.std import unicodeobject, slicetype, iterobject
 from pypy.objspace.std.tupleobject import W_TupleObject
     node = w_unicode._node
     chars = node.flatten_unicode()
     size = node.length()
-    s = unicode_encode_unicode_escape(chars, size, "strict", quotes=True)
+    s = unicode_escape_nonprintable(chars, size, "strict", quotes=True)
     return space.wrap(s)
 
 def mod__RopeUnicode_ANY(space, w_format, w_values):

File pypy/objspace/std/unicodeobject.py

View file
 from pypy.rlib.objectmodel import compute_hash, specialize
 from pypy.rlib.objectmodel import compute_unique_id
 from pypy.rlib.rstring import UnicodeBuilder
-from pypy.rlib.runicode import (
-    unicode_encode_unicode_escape, unicode_escape_nonprintable)
+from pypy.rlib.runicode import unicode_escape_nonprintable
 from pypy.module.unicodedata import unicodedb
 from pypy.tool.sourcetools import func_with_new_name
 from pypy.rlib import jit