You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/07/13 00:55:26 UTC

svn commit: r1690545 - /comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py

Author: sebb
Date: Sun Jul 12 22:55:26 2015
New Revision: 1690545

URL: http://svn.apache.org/r1690545
Log:
EOL

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py   (contents, props changed)

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py?rev=1690545&r1=1690544&r2=1690545&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py Sun Jul 12 22:55:26 2015
@@ -1,57 +1,57 @@
-"""
-
-Reads http://people.apache.org/committer-index.html and creates
-../../site/json/foundation/people.json
-../../site/json/foundation/people_name.json
-../../site/json/foundation/groups.json
-
-"""
-
-import re
-import urllib.request
-import json
-
-people = {}
-people_name = {}
-groups = {}
-data = urllib.request.urlopen("http://people.apache.org/committer-index.html").read().decode('utf-8')
-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.+?>\s*(.+?)</td>[\s\S]+?>(.+)</td>", committer, re.MULTILINE | re.UNICODE)
-    if m:
-        cid = m.group(1)
-        cname = re.sub(r"<.+?>", "", m.group(2), 4)
-        groupsString = m.group(3)
-        cgroups = []
-        isMember = False
-        if re.search(r"<b", committer, re.MULTILINE | re.UNICODE):
-            isMember = True
-        for group in re.findall(r"#([-a-z0-9._]+)", groupsString):
-            cgroups.append(group)
-            groups[group] = groups[group] if group in groups else []
-            groups[group].append(cid)
-        people[cid] = {
-            'name':  cname,
-            'member': isMember,
-            'groups': cgroups
-        }
-        people_name[cid] = cname
-
-print("Writing people.json")
-with open("../../site/json/foundation/people.json", "w") as f:
-    f.write(json.dumps(people, sort_keys=True, indent=0))
-    f.close()
-
-print("Writing people_name.json")
-with open("../../site/json/foundation/people_name.json", "w") as f:
-    f.write(json.dumps(people_name, sort_keys=True, indent=0))
-    f.close()
-
-print("Writing groups.json")
-with open("../../site/json/foundation/groups.json", "w") as f:
-    f.write(json.dumps(groups, sort_keys=True, indent=0))
-    f.close()
-
+"""
+
+Reads http://people.apache.org/committer-index.html and creates
+../../site/json/foundation/people.json
+../../site/json/foundation/people_name.json
+../../site/json/foundation/groups.json
+
+"""
+
+import re
+import urllib.request
+import json
+
+people = {}
+people_name = {}
+groups = {}
+data = urllib.request.urlopen("http://people.apache.org/committer-index.html").read().decode('utf-8')
+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.+?>\s*(.+?)</td>[\s\S]+?>(.+)</td>", committer, re.MULTILINE | re.UNICODE)
+    if m:
+        cid = m.group(1)
+        cname = re.sub(r"<.+?>", "", m.group(2), 4)
+        groupsString = m.group(3)
+        cgroups = []
+        isMember = False
+        if re.search(r"<b", committer, re.MULTILINE | re.UNICODE):
+            isMember = True
+        for group in re.findall(r"#([-a-z0-9._]+)", groupsString):
+            cgroups.append(group)
+            groups[group] = groups[group] if group in groups else []
+            groups[group].append(cid)
+        people[cid] = {
+            'name':  cname,
+            'member': isMember,
+            'groups': cgroups
+        }
+        people_name[cid] = cname
+
+print("Writing people.json")
+with open("../../site/json/foundation/people.json", "w") as f:
+    f.write(json.dumps(people, sort_keys=True, indent=0))
+    f.close()
+
+print("Writing people_name.json")
+with open("../../site/json/foundation/people_name.json", "w") as f:
+    f.write(json.dumps(people_name, sort_keys=True, indent=0))
+    f.close()
+
+print("Writing groups.json")
+with open("../../site/json/foundation/groups.json", "w") as f:
+    f.write(json.dumps(groups, sort_keys=True, indent=0))
+    f.close()
+
 print("All done!")
\ No newline at end of file

Propchange: comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
------------------------------------------------------------------------------
    svn:eol-style = native