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:
Fredrik Lundh 2000-07-05 21:14:16 +00:00
parent 1f46860a29
commit 2855290b84
2 changed files with 34 additions and 33 deletions

View file

@ -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: