community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1688470 - /comdev/reporter.apache.org/data/parsepmcs.py
Date Tue, 30 Jun 2015 15:04:21 GMT
Author: sebb
Date: Tue Jun 30 15:04:21 2015
New Revision: 1688470

URL: http://svn.apache.org/r1688470
Log:
Check we have suitable Python version

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

Modified: comdev/reporter.apache.org/data/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/data/parsepmcs.py?rev=1688470&r1=1688469&r2=1688470&view=diff
==============================================================================
--- comdev/reporter.apache.org/data/parsepmcs.py (original)
+++ comdev/reporter.apache.org/data/parsepmcs.py Tue Jun 30 15:04:21 2015
@@ -1,3 +1,8 @@
+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



Mime
View raw message