[Python-checkins] CVS: python/dist/src/Modules _sre.c,2.66,2.67

Fredrik Lundh effbot@users.sourceforge.net
Thu, 18 Oct 2001 12:30:17 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv20834/Modules

Modified Files:
	_sre.c 
Log Message:


SRE bug #441409:
    compile should raise error for non-strings
SRE bug #432570, 448951:
    reset group after failed match

also bumped version number to 2.2.0

Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.66
retrieving revision 2.67
diff -C2 -d -r2.66 -r2.67
*** _sre.c	2001/09/18 20:55:24	2.66
--- _sre.c	2001/10/18 19:30:11	2.67
***************
*** 33,36 ****
--- 33,37 ----
   * 2001-07-01 fl  added BIGCHARSET support (from Martin von Loewis)
   * 2001-09-18 fl  added _getliteral helper
+  * 2001-10-18 fl  fixed group reset issue (from Matthew Mueller)
   *
   * Copyright (c) 1997-2001 by Secret Labs AB.  All rights reserved.
***************
*** 48,52 ****
  
  static char copyright[] =
!     " SRE 2.1.1 Copyright (c) 1997-2001 by Secret Labs AB ";
  
  #include "Python.h"
--- 49,53 ----
  
  static char copyright[] =
!     " SRE 2.2.0 Copyright (c) 1997-2001 by Secret Labs AB ";
  
  #include "Python.h"
***************
*** 1062,1065 ****
--- 1063,1067 ----
                      return i;
                  i = mark_restore(state, 0, lastmark);
+                 state->lastmark = lastmark;
                  if (i < 0)
                      return i;