Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32029/spambayes

Modified Files:
        Version.py 
Log Message:
Handle version numbers like "1.1a1+" which just serve to distinguish CVS from 
the
 just released version.  (Just ignore the +, since people running from CVS are 
unlikely
 to use the check for new version function anyway).

Index: Version.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Version.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** Version.py  23 Dec 2004 18:14:33 -0000      1.34
--- Version.py  7 Apr 2005 22:51:53 -0000       1.35
***************
*** 168,172 ****
          return "%s('%s', '%s')" % (self.__class__.__name__, str(self), 
self.date)
  
!     version_re = re.compile(r'^(\d+) \. (\d+) (\. (\d+))? (([ab]|rc)(\d+))?$',
                              re.VERBOSE)
  
--- 168,172 ----
          return "%s('%s', '%s')" % (self.__class__.__name__, str(self), 
self.date)
  
!     version_re = re.compile(r'^(\d+) \. (\d+) (\. (\d+))? 
(([ab]|rc)(\d+))?\+?$',
                              re.VERBOSE)
  

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to