spambayes/spambayes Version.py,1.34,1.35

"Tony Meyer" <[email protected]>
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.