mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bumped SRE version number to 2.1. cleaned up and added 1.5.2
compatibility patches.
This commit is contained in:
parent
dfb673b457
commit
1c5aa6901f
4 changed files with 76 additions and 44 deletions
|
@ -181,7 +181,7 @@ def _split(pattern, string, maxsplit=0):
|
|||
continue
|
||||
append(string[i:b])
|
||||
if g and b != e:
|
||||
extend(m.groups())
|
||||
extend(list(m.groups()))
|
||||
i = e
|
||||
n = n + 1
|
||||
append(string[i:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue