[pypy-commit] pypy py3k: kill the u''

antocuni noreply at buildbot.pypy.org
Tue Feb 28 23:43:48 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53004:390d9fc2b4bd
Date: 2012-02-28 23:09 +0100
http://bitbucket.org/pypy/pypy/changeset/390d9fc2b4bd/

Log:	kill the u''

diff --git a/pypy/module/exceptions/test/test_exc.py b/pypy/module/exceptions/test/test_exc.py
--- a/pypy/module/exceptions/test/test_exc.py
+++ b/pypy/module/exceptions/test/test_exc.py
@@ -71,18 +71,18 @@
 
     def test_unicode_translate_error(self):
         from exceptions import UnicodeTranslateError
-        ut = UnicodeTranslateError(u"x", 1, 5, "bah")
-        assert ut.object == u'x'
+        ut = UnicodeTranslateError("x", 1, 5, "bah")
+        assert ut.object == 'x'
         assert ut.start == 1
         assert ut.end == 5
         assert ut.reason == 'bah'
-        assert ut.args == (u'x', 1, 5, 'bah')
+        assert ut.args == ('x', 1, 5, 'bah')
         assert ut.message == ''
-        ut.object = u'y'
-        assert ut.object == u'y'
+        ut.object = 'y'
+        assert ut.object == 'y'
         assert str(ut) == "can't translate characters in position 1-4: bah"
         ut.start = 4
-        ut.object = u'012345'
+        ut.object = '012345'
         assert str(ut) == "can't translate character u'\\x34' in position 4: bah"
         ut.object = []
         assert ut.object == []


More information about the pypy-commit mailing list