community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1704772 - /comdev/projects.apache.org/scripts/import/parseprojects.py
Date Wed, 23 Sep 2015 08:19:46 GMT
Author: sebb
Date: Wed Sep 23 08:19:46 2015
New Revision: 1704772

URL: http://svn.apache.org/viewvc?rev=1704772&view=rev
Log:
Rename parameter; makes it easier to find usages of actual siteId variable

Modified:
    comdev/projects.apache.org/scripts/import/parseprojects.py

Modified: comdev/projects.apache.org/scripts/import/parseprojects.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parseprojects.py?rev=1704772&r1=1704771&r2=1704772&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/import/parseprojects.py Wed Sep 23 08:19:46 2015
@@ -39,10 +39,10 @@ siteMap = {
     'ws':'webservices'
 }
 
-def site2committee(siteId):
-    if siteId in siteMap:
-        return siteMap[siteId]
-    return siteId
+def site2committee(s):
+    if s in siteMap:
+        return siteMap[s]
+    return s
 
 with open("../../site/json/foundation/committees-retired.json", "r") as f:
     committeesRetired = json.loads(f.read())



Mime
View raw message