mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
maintenance release:
- reorganized some code to get rid of -Wall and -W4 warnings - fixed default argument handling for sub/subn/split methods (reported by Peter Schneider-Kamp).
This commit is contained in:
parent
1f46860a29
commit
2855290b84
2 changed files with 34 additions and 33 deletions
|
@ -16,8 +16,10 @@ from sre_constants import *
|
|||
|
||||
MAXCODE = 65535
|
||||
|
||||
def _charset(charset, fixup):
|
||||
def _charset(charset, fixup=None):
|
||||
# internal: optimize character set
|
||||
if not fixup:
|
||||
fixup = lambda x: x
|
||||
out = []
|
||||
charmap = [0]*256
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue