summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-05 21:14:16 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-07-05 21:14:16 (GMT)
commit2855290b848a95c925cbf605d39044164a71d7e5 (patch)
treee42d4ae4895d8e1c3efdccad0bba8ab995afb894 /Lib
parent1f46860a29de4b303fe8f2e7b1b82a7c86be19c0 (diff)
downloadcpython-2855290b848a95c925cbf605d39044164a71d7e5.zip
cpython-2855290b848a95c925cbf605d39044164a71d7e5.tar.gz
cpython-2855290b848a95c925cbf605d39044164a71d7e5.tar.bz2
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).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sre_compile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 828b170..d8d01ea 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -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: