[pypy-svn] r51302 - pypy/branch/ghop-ropes-classes/pypy/rlib

vinogradov at codespeak.net vinogradov at codespeak.net
Tue Feb 5 20:01:18 CET 2008


Author: vinogradov
Date: Tue Feb  5 20:01:17 2008
New Revision: 51302

Modified:
   pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py
Log:
Add test for find method

Modified: pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py
==============================================================================
--- pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py	(original)
+++ pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py	Tue Feb  5 20:01:17 2008
@@ -101,7 +101,10 @@
 
     def getchar(self,index):
         return self._node.getchar(index)
-
+    
+    def find(self, sub):
+        return -1
+    
 class RopeUnicodeIterator(object):
     def __init__(self, node):
         self._iter = rope.ItemIterator(node)



More information about the Pypy-commit mailing list