Commits

Tyler Wade committed 821f21a

Remove some stray unicode literals

  • Participants
  • Parent commits 6ae77b6
  • Branches utf8-unicode2

Comments (0)

Files changed (2)

File pypy/interpreter/baseobjspace.py

         "Like unicode_w, but rejects strings with NUL bytes."
         from rpython.rlib import rstring
         result = w_obj.unicode_w(self)
-        if u'\x00' in result:
+        if Utf8Str('\x00') in result:
             raise OperationError(self.w_TypeError, self.wrap(
                     'argument must be a unicode string without NUL characters'))
         return rstring.assert_str0(result)

File pypy/interpreter/utf8_codecs.py

     else:
         bo = 1
     if size == 0:
-        return u'', 0, bo
+        return Utf8Str(''), 0, bo
     if bo == -1:
         # force little endian
         ihi = 1
     else:
         bo = 1
     if size == 0:
-        return u'', 0, bo
+        return Utf8Str(''), 0, bo
     if bo == -1:
         # force little endian
         iorder = [0, 1, 2, 3]
     if errorhandler is None:
         errorhandler = default_unicode_error_decode
     if size == 0:
-        return u'', 0
+        return Utf8Str(''), 0
 
     pos = 0
     result = Utf8Builder(size)