Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58125:3b9d43911b4d
Date: 2012-10-15 17:38 -0700
http://bitbucket.org/pypy/pypy/changeset/3b9d43911b4d/

Log:    fix None handling

diff --git a/pypy/objspace/std/unicodetype.py b/pypy/objspace/std/unicodetype.py
--- a/pypy/objspace/std/unicodetype.py
+++ b/pypy/objspace/std/unicodetype.py
@@ -307,11 +307,11 @@
     character at the same position in y. If there is a third argument, it
     must be a string, whose characters will be mapped to None in the result."""
 
-    if space.is_w(w_y, space.w_None):
+    if space.is_none(w_y):
         y = None
     else:
         y = space.unicode_w(w_y)
-    if space.is_w(w_z, space.w_None):
+    if space.is_none(w_z):
         z = None
     else:
         z = space.unicode_w(w_z)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to