[pypy-commit] pypy remove-remaining-smm: Fix.

Manuel Jacob noreply at buildbot.pypy.org
Mon Feb 24 21:56:02 CET 2014


Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69362:b7f041f08b3a
Date: 2014-02-24 21:18 +0100
http://bitbucket.org/pypy/pypy/changeset/b7f041f08b3a/

Log:	Fix.

diff --git a/pypy/objspace/std/sliceobject.py b/pypy/objspace/std/sliceobject.py
--- a/pypy/objspace/std/sliceobject.py
+++ b/pypy/objspace/std/sliceobject.py
@@ -125,9 +125,11 @@
         # parameters
         if space.is_w(self, w_other):
             return space.w_True
+        if not isinstance(w_other, W_SliceObject):
+            return space.w_NotImplemented
         if space.eq_w(self.w_start, w_other.w_start) and \
-            space.eq_w(self.w_stop, w_other.w_stop) and \
-            space.eq_w(self.w_step, w_other.w_step):
+           space.eq_w(self.w_stop, w_other.w_stop) and \
+           space.eq_w(self.w_step, w_other.w_step):
             return space.w_True
         else:
             return space.w_False


More information about the pypy-commit mailing list