incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1617001 - /incubator/public/trunk/clutch.py
Date Sat, 09 Aug 2014 18:36:15 GMT
Author: sebb
Date: Sat Aug  9 18:36:14 2014
New Revision: 1617001

URL: http://svn.apache.org/r1617001
Log:
Code requires Python3

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1617001&r1=1617000&r2=1617001&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Sat Aug  9 18:36:14 2014
@@ -94,6 +94,10 @@ Pickle file:
 # FIXME: Better deal with input/output/unicode.
 # FIXME: See some other suggestions in issue INCUBATOR-78.
 
+import sys
+if sys.version_info < (3, 0):
+    raise Exception("Python 2 is no longer supported;  please use Python 3 ")
+
 import subprocess
 import datetime
 from html.parser import HTMLParser
@@ -578,7 +582,7 @@ for k in releases:
       otherIssues.append(errorMsg)
       continue
     else:
-      if optionInfo:
+        # TODO check whether k is an alias to a graduated project
         print("INFO: {0}: retired project has remains on Incubator mirrors".format(k))
 
 releasesBadName = {}



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message