issue #477: yet another bug in core._partition().

issue510
David Wilson 6 years ago
parent d8490bc90a
commit dd36450daf

@ -343,7 +343,7 @@ def _partition(s, splitter, find):
return type(s)(), type(s)(), s return type(s)(), type(s)(), s
left = s[0:idx] left = s[0:idx]
mid = s[idx:idx+len(splitter)] mid = s[idx:idx+len(splitter)]
return left, mid, s[len(left)+len(mid)] return left, mid, s[len(left)+len(mid):]
if hasattr(UnicodeType, 'rpartition'): if hasattr(UnicodeType, 'rpartition'):

Loading…
Cancel
Save