community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1672962 - /comdev/projects.apache.org/scripts/import/rdfparse.py
Date Sun, 12 Apr 2015 01:40:39 GMT
Author: hboutemy
Date: Sun Apr 12 01:40:39 2015
New Revision: 1672962

URL: http://svn.apache.org/r1672962
Log:
fixed typo

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

Modified: comdev/projects.apache.org/scripts/import/rdfparse.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/rdfparse.py?rev=1672962&r1=1672961&r2=1672962&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/rdfparse.py (original)
+++ comdev/projects.apache.org/scripts/import/rdfparse.py Sun Apr 12 01:40:39 2015
@@ -54,7 +54,7 @@ for s in itemlist :
                         pjson[k][xk] = v[xk]
             else:
                 pjson[k] = v
-        
+
         if pjson['homepage']:
             m = re.match(r"https?://([^.]+)\.", pjson['homepage'], re.IGNORECASE)
             if m:
@@ -72,7 +72,7 @@ for s in itemlist :
                     for e in pjson[k]:
                         add[e] = pjson[k][e]
                     pjson[k] = None
-                    
+
             projects[prname] = pjson
             for e in add:
                 pjson[e] = add[e]
@@ -82,8 +82,8 @@ for s in itemlist :
                     f.write(json.dumps(pjson, sort_keys=True, indent=0))
                     f.close()
     except Exception as err:
-        print("Error when readind " + url + ": %s" % err)
-        
+        print("Error when reading " + url + ": %s" % err)
+
 with open ("../../site/json/foundation/projects.json", "w") as f:
     f.write(json.dumps(projects, sort_keys=True, indent=0))
     f.close()



Mime
View raw message