community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1690544 - /comdev/projects.apache.org/scripts/cronjobs/parsechairs.py
Date Sun, 12 Jul 2015 22:50:02 GMT
Author: sebb
Date: Sun Jul 12 22:50:02 2015
New Revision: 1690544

URL: http://svn.apache.org/r1690544
Log:
Set EOL

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

Modified: comdev/projects.apache.org/scripts/cronjobs/parsechairs.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsechairs.py?rev=1690544&r1=1690543&r2=1690544&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsechairs.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsechairs.py Sun Jul 12 22:50:02 2015
@@ -1,41 +1,41 @@
-import re, urllib.request
-import csv
-import json
-import os
-
-"""
-Reads http://www.apache.org/foundation/
-Creates:
-../../site/json/foundation/chairs.json
-
-TODO replace this by parsing committee-info.txt when access is granted
-
-"""
-
-chairs = {}
-
-renames = {
-    'Apache APR': 'Apache Portable Runtime'
-}
-
-data = urllib.request.urlopen("http://www.apache.org/foundation/").read().decode('utf-8')
-x = 0
-
-for committer in re.findall(r"<tr>[\s\S]+?V\.P\., Apache [\s\S]+?</tr>", data,
re.MULTILINE | re.UNICODE):
-    x += 1
-    #print(committer)
-    m = re.search(r"<td>V.P., (Apache [\s\S]+?)</td>[\s\S]*?<td>([\s\S]+?)</td>",
committer, re.MULTILINE | re.UNICODE)
-    if m:
-        project = m.group(1)
-        if project in renames:
-            project = renames[project]
-        person = m.group(2)
-        chairs[project] = person
-
-
-print("Writing chairs.json")
-with open("../../site/json/foundation/chairs.json", "w") as f:
-    f.write(json.dumps(chairs, sort_keys=True, indent=0))
-    f.close()
-
+import re, urllib.request
+import csv
+import json
+import os
+
+"""
+Reads http://www.apache.org/foundation/
+Creates:
+../../site/json/foundation/chairs.json
+
+TODO replace this by parsing committee-info.txt when access is granted
+
+"""
+
+chairs = {}
+
+renames = {
+    'Apache APR': 'Apache Portable Runtime'
+}
+
+data = urllib.request.urlopen("http://www.apache.org/foundation/").read().decode('utf-8')
+x = 0
+
+for committer in re.findall(r"<tr>[\s\S]+?V\.P\., Apache [\s\S]+?</tr>", data,
re.MULTILINE | re.UNICODE):
+    x += 1
+    #print(committer)
+    m = re.search(r"<td>V.P., (Apache [\s\S]+?)</td>[\s\S]*?<td>([\s\S]+?)</td>",
committer, re.MULTILINE | re.UNICODE)
+    if m:
+        project = m.group(1)
+        if project in renames:
+            project = renames[project]
+        person = m.group(2)
+        chairs[project] = person
+
+
+print("Writing chairs.json")
+with open("../../site/json/foundation/chairs.json", "w") as f:
+    f.write(json.dumps(chairs, sort_keys=True, indent=0))
+    f.close()
+
 print("All done!")
\ No newline at end of file

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



Mime
View raw message