[pypy-svn] r58931 - pypy/branch/2.5-merge/pypy/objspace/std

iko at codespeak.net iko at codespeak.net
Fri Oct 10 19:51:19 CEST 2008


Author: iko
Date: Fri Oct 10 19:51:19 2008
New Revision: 58931

Modified:
   pypy/branch/2.5-merge/pypy/objspace/std/stringobject.py
Log:
Fix incorrect variable name



Modified: pypy/branch/2.5-merge/pypy/objspace/std/stringobject.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/objspace/std/stringobject.py	(original)
+++ pypy/branch/2.5-merge/pypy/objspace/std/stringobject.py	Fri Oct 10 19:51:19 2008
@@ -263,13 +263,14 @@
 def _split_helper(space, value, sep, maxsplit):
     res_w = []
     start = 0
+    seplen = len(sep)
 
     while maxsplit != 0:
-        next = value.find(by, start)
+        next = value.find(sep, start)
         if next < 0:
             break
         res_w.append(sliced(space, value, start, next))
-        start = next + bylen
+        start = next + seplen
         maxsplit -= 1   # NB. if it's already < 0, it stays < 0
     
     res_w.append(sliced(space, value, start, len(value)))



More information about the Pypy-commit mailing list