community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1704045 - /comdev/projects.apache.org/scripts/import/parseprojects.py
Date Sat, 19 Sep 2015 14:39:33 GMT
Author: sebb
Date: Sat Sep 19 14:39:32 2015
New Revision: 1704045

URL: http://svn.apache.org/viewvc?rev=1704045&view=rev
Log:
Use positive conditional

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=1704045&r1=1704044&r2=1704045&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/import/parseprojects.py Sat Sep 19 14:39:32 2015
@@ -132,12 +132,13 @@ for s in itemlist :
                     for xk in v:
                         pjson[k].append(v[xk])
             else:
-                if k not in ['release', 'implements', 'repository', 'developer', 'maintainer',
'member', 'helper']:
-                    pjson[k] = v
-                else:
+                # Deal with multiple entry tags first
+                if k in ['release', 'implements', 'repository', 'developer', 'maintainer',
'member', 'helper']:
                     pjson[k] = []
                     for xk in v:
                         pjson[k].append(v[xk])
+                else:
+                    pjson[k] = v
 
         if pjson['homepage']:
             homepage = pjson['homepage']



Mime
View raw message