[pypy-svn] r50027 - pypy/branch/ghop-ropes-classes/pypy/rlib
vinogradov at codespeak.net
vinogradov at codespeak.net
Sun Dec 23 10:14:25 CET 2007
Author: vinogradov
Date: Sun Dec 23 10:14:23 2007
New Revision: 50027
Modified:
pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py
Log:
Rename some arguments for RopeString methods
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 Sun Dec 23 10:14:23 2007
@@ -1,8 +1,8 @@
from pypy.rlib import rope
class RopeString(object):
- def __init__ (self, str):
- self._node = rope.LiteralStringNode(str)
+ def __init__ (self, s):
+ self._node = rope.LiteralStringNode(s)
def __len__ (self):
return self._node.length()
@@ -10,8 +10,8 @@
def __getitem__ (self, index):
return self._node.getchar(index)
- def __eq__ (self, str):
- return rope.eq (self._node, rope.LiteralStringNode(str))
+ def __eq__ (self, other):
+ return rope.eq (self._node, rope.LiteralStringNode(other))
class RopeUnicode(object):
pass
More information about the Pypy-commit
mailing list