[pypy-svn] r49323 - pypy/dist/pypy/rlib

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Dec 3 21:26:33 CET 2007


Author: cfbolz
Date: Mon Dec  3 21:26:31 2007
New Revision: 49323

Modified:
   pypy/dist/pypy/rlib/rope.py
Log:
wtf?


Modified: pypy/dist/pypy/rlib/rope.py
==============================================================================
--- pypy/dist/pypy/rlib/rope.py	(original)
+++ pypy/dist/pypy/rlib/rope.py	Mon Dec  3 21:26:31 2007
@@ -167,8 +167,6 @@
         if what >= 256:
             return -1
         result = self.s.find(chr(what), start, stop)
-        if result == -1:
-            return -1
         return result
 
     def literal_concat(self, other):
@@ -244,8 +242,6 @@
 
     def find_int(self, what, start, stop):
         result = self.u.find(unichr(what), start, stop)
-        if result == -1:
-            return -1
         return result
 
     def literal_concat(self, other):



More information about the Pypy-commit mailing list