diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-05 21:14:16 +0000 |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-05 21:14:16 +0000 |
commit | 40c8f452a3bc2b97ccf3fa5a75700e2a70bb7e65 (patch) | |
tree | 49e88c8b804c5527cad2619b5cb61c74bbfa2b43 /Lib/sre_compile.py | |
parent | 22e7da5683c5f68c6e05988818d138566b322120 (diff) | |
download | cpython-40c8f452a3bc2b97ccf3fa5a75700e2a70bb7e65.tar.gz |
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/sre_compile.py')
-rw-r--r-- | Lib/sre_compile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 828b1702fe..d8d01eabef 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: |