[pypy-svn] r25396 - pypy/dist/pypy/objspace

auc at codespeak.net auc at codespeak.net
Wed Apr 5 17:17:06 CEST 2006


Author: auc
Date: Wed Apr  5 17:17:05 2006
New Revision: 25396

Modified:
   pypy/dist/pypy/objspace/logic.py
Log:


Modified: pypy/dist/pypy/objspace/logic.py
==============================================================================
--- pypy/dist/pypy/objspace/logic.py	(original)
+++ pypy/dist/pypy/objspace/logic.py	Wed Apr  5 17:17:05 2006
@@ -553,10 +553,10 @@
     if not space.eq_w(w_x, w_y):
         w_d1 = w_x.getdict()
         w_d2 = w_y.getdict()
-        if None not in (w_d1, w_d2):
-            return space.unify(w_d1, w_d2)
-        else:
+        if (w_d1 == None) or (w_d2 == None):
             fail(space, w_x, w_y)
+        else:
+            return space.unify(w_d1, w_d2)
     return space.w_None
     
 def unify__Var_Var(space, w_x, w_y):
@@ -621,6 +621,7 @@
         if space.is_true(space.is_nb_(w_xi, w_yi)):
             continue
         space.unify(w_xi, w_yi)
+    return space.w_None
 
 
 unify_mm = StdObjSpaceMultiMethod('unify', 2)



More information about the Pypy-commit mailing list