Mercurial > hg
diff mercurial/strutil.py @ 8155:b7cdfa2527be
strutil: removed rsplit
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 24 Apr 2009 17:32:18 +0200 |
parents | aecea6934fdd |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/mercurial/strutil.py Fri Apr 24 17:32:18 2009 +0200 +++ b/mercurial/strutil.py Fri Apr 24 17:32:18 2009 +0200 @@ -32,10 +32,3 @@ break yield c end = c - 1 - -def rsplit(s, sep=None, maxsplit=-1): - try: - return s.rsplit(sep, maxsplit) - except AttributeError: - return [chunk[::-1] for chunk in - s[::-1].split(sep, maxsplit)[::-1]]