[Python-checkins] CVS: python/dist/src/Lib sre_parse.py,1.35,1.36

Fredrik Lundh python-dev@python.org
Sat, 7 Oct 2000 03:16:21 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15855/Lib

Modified Files:
	sre_parse.py 
Log Message:


SRE didn't handle character category followed by hyphen inside a
character class.  Fix provided by Andrew Kuchling.  Closes bug
#116251.


Index: sre_parse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_parse.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** sre_parse.py	2000/10/03 19:22:26	1.35
--- sre_parse.py	2000/10/07 10:16:14	1.36
***************
*** 394,397 ****
--- 394,399 ----
                      this = source.get()
                      if this == "]":
+                         if code1[0] is IN:
+                             code1 = code1[1][0]
                          set.append(code1)
                          set.append((LITERAL, ord("-")))