community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1690398 - /comdev/reporter.apache.org/branches/deployed/data/parsepmcs.py
Date Sat, 11 Jul 2015 18:30:28 GMT
Author: sebb
Date: Sat Jul 11 18:30:28 2015
New Revision: 1690398

URL: http://svn.apache.org/r1690398
Log:
Add remaining unapplied changes from trunk

Modified:
    comdev/reporter.apache.org/branches/deployed/data/parsepmcs.py

Modified: comdev/reporter.apache.org/branches/deployed/data/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/deployed/data/parsepmcs.py?rev=1690398&r1=1690397&r2=1690398&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/deployed/data/parsepmcs.py (original)
+++ comdev/reporter.apache.org/branches/deployed/data/parsepmcs.py Sat Jul 11 18:30:28 2015
@@ -1,4 +1,10 @@
-import re, urllib.request
+import sys
+# The code uses urllib.request which is Python3
+if sys.hexversion < 0x030000F0:
+    raise RuntimeError("This script requires Python3")
+
+import re
+import urllib.request
 import csv
 import json
 import os



Mime
View raw message