[Python-checkins] r60799 - sandbox/trunk/welease/welease.py

martin.v.loewis python-checkins at python.org
Thu Feb 14 13:57:49 CET 2008


Author: martin.v.loewis
Date: Thu Feb 14 13:57:49 2008
New Revision: 60799

Modified:
   sandbox/trunk/welease/welease.py
Log:
Fix regex for bugfix releases.


Modified: sandbox/trunk/welease/welease.py
==============================================================================
--- sandbox/trunk/welease/welease.py	(original)
+++ sandbox/trunk/welease/welease.py	Thu Feb 14 13:57:49 2008
@@ -480,7 +480,7 @@
 
 def parseReleaseLine(line):
     # ick
-    vline = re.compile(r"^what's new in (python|idle) (?P<major>\d\.\d)( ?\(?(?P<level>alpha|beta|release candidate|final|rc|[abc]) ?(?P<serial>\d))?\)?\??", re.I)
+    vline = re.compile(r"^what's new in (python|idle) (?P<major>\d\.\d(\.\d)?)( ?\(?(?P<level>alpha|beta|release candidate|final|rc|[abc]) ?(?P<serial>\d))?\)?\??", re.I)
     levels = {'alpha':'a', 'beta':'b', 'rc':'c', 'release candidate':'c'}
     m = vline.search(line)
     if m:


More information about the Python-checkins mailing list