incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1439309 - /incubator/public/trunk/voter/voter.py
Date Mon, 28 Jan 2013 09:12:36 GMT
Author: brane
Date: Mon Jan 28 09:12:36 2013
New Revision: 1439309

URL: http://svn.apache.org/viewvc?rev=1439309&view=rev
Log:
voter.py: Fix subject parsing regex, there's no need for a named group
for the alternative RESULT/DISCUSS/CANCELLED tag positioning.

Modified:
    incubator/public/trunk/voter/voter.py

Modified: incubator/public/trunk/voter/voter.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/voter/voter.py?rev=1439309&r1=1439308&r2=1439309&view=diff
==============================================================================
--- incubator/public/trunk/voter/voter.py (original)
+++ incubator/public/trunk/voter/voter.py Mon Jan 28 09:12:36 2013
@@ -119,7 +119,7 @@ class VoteUpdater(object):
         # The [VOTE] tag is mandatory
         r'\[VOTE\]\s*'
         # Handle [VOTE][<tag>] as well, just in case
-        r'(?P<tag2>\[((?P<result2>RESULT)|DISCUSS|(?P<cancel2>CANCELL?(ED)?))\]\s*)?'
+        r'(\[((?P<result2>RESULT)|DISCUSS|(?P<cancel2>CANCELL?(ED)?))\]\s*)?'
         # The rest of the subject line, and strip off trailing whitespace
         r'(?P<subject>.*?)\s*$',
         re.IGNORECASE)



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message