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

Fredrik Lundh python-dev@python.org
Thu, 21 Sep 2000 10:03:28 -0700


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

Modified Files:
	sre.py 
Log Message:


- fixed yet another gcc -pedantic warning
- added experimental "expand" method to match objects
- don't use the buffer interface on unicode strings

Index: sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** sre.py	2000/08/07 20:59:04	1.24
--- sre.py	2000/09/21 17:03:24	1.25
***************
*** 106,109 ****
--- 106,114 ----
      return p
  
+ def _expand(pattern, match, template):
+     # internal: match.expand implementation hook
+     template = sre_parse.parse_template(template, pattern)
+     return sre_parse.expand_template(template, match)
+ 
  def _sub(pattern, template, string, count=0):
      # internal: pattern.sub implementation hook