community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1662735 - /comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
Date Fri, 27 Feb 2015 16:23:21 GMT
Author: humbedooh
Date: Fri Feb 27 16:23:20 2015
New Revision: 1662735

URL: http://svn.apache.org/r1662735
Log:
work around syntax change on people.a.o

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py?rev=1662735&r1=1662734&r2=1662735&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py Fri Feb 27 16:23:20 2015
@@ -12,7 +12,7 @@ x = 0
 for committer in re.findall(r"<tr>([\S\s]+?)</tr>", data, re.MULTILINE | re.UNICODE):
     x += 1
 ##    print(committer)
-    m = re.search(r"<a id='(.+?)'>[\s\S]+?<td.+?>(.+?)</td>[\s\S]+?>(.+)</td>",
committer, re.MULTILINE | re.UNICODE)
+    m = re.search(r"<a id='(.+?)'>[\s\S]+?<td.+?>\s*(.+?)</td>[\s\S]+?>(.+)</td>",
committer, re.MULTILINE | re.UNICODE)
     if m:
         cid = m.group(1)
         cname = re.sub(r"<.+?>", "", m.group(2), 4)



Mime
View raw message