[pypy-svn] r32678 - pypy/dist/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Wed Sep 27 20:57:22 CEST 2006


Author: arigo
Date: Wed Sep 27 20:57:21 2006
New Revision: 32678

Modified:
   pypy/dist/pypy/objspace/std/unicodeobject.py
Log:
Comment out confusing code.


Modified: pypy/dist/pypy/objspace/std/unicodeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/unicodeobject.py	(original)
+++ pypy/dist/pypy/objspace/std/unicodeobject.py	Wed Sep 27 20:57:21 2006
@@ -79,12 +79,13 @@
         return space.wrap(1)
     return space.wrap(0)
 
-def cmp__Unicode_ANY(space, w_left, w_right):
-    try:
-        w_right = space.call_function(space.w_unicode, w_right)
-    except:
-        return space.wrap(1)
-    return space.cmp(w_left, w_right)
+## XXX what?? the following seems unnecessary
+##def cmp__Unicode_ANY(space, w_left, w_right):
+##    try:
+##        w_right = space.call_function(space.w_unicode, w_right)
+##    except:
+##        return space.wrap(1)
+##    return space.cmp(w_left, w_right)
 
 def ord__Unicode(space, w_uni):
     if len(w_uni._value) != 1:



More information about the Pypy-commit mailing list