[Python-checkins] CVS: python/dist/src/Lib sre_compile.py,1.24,1.25

Fredrik Lundh python-dev@python.org
Wed, 5 Jul 2000 14:14:18 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29972/Lib
Modified Files:
	sre_compile.py 
Log Message:
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).
Index: sre_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_compile.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** sre_compile.py	2000年07月03日 21:31:48	1.24
--- sre_compile.py	2000年07月05日 21:14:15	1.25
***************
*** 17,22 ****
 MAXCODE = 65535
 
! def _charset(charset, fixup):
 # internal: optimize character set
 out = []
 charmap = [0]*256
--- 17,24 ----
 MAXCODE = 65535
 
! def _charset(charset, fixup=None):
 # internal: optimize character set
+ if not fixup:
+ fixup = lambda x: x
 out = []
 charmap = [0]*256

AltStyle によって変換されたページ (->オリジナル) /