incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1681890 - in /incubator/public/trunk: assign_shepherds.py clutch.py clutch2report.py report_runbook.py report_timeline.py
Date Tue, 26 May 2015 22:56:53 GMT
Author: marvin
Date: Tue May 26 22:56:52 2015
New Revision: 1681890

URL: http://svn.apache.org/r1681890
Log:
Require Python 3.2.

Python 3.2 is when argparse was added to the standard library.

Modified:
    incubator/public/trunk/assign_shepherds.py
    incubator/public/trunk/clutch.py
    incubator/public/trunk/clutch2report.py
    incubator/public/trunk/report_runbook.py
    incubator/public/trunk/report_timeline.py

Modified: incubator/public/trunk/assign_shepherds.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/assign_shepherds.py?rev=1681890&r1=1681889&r2=1681890&view=diff
==============================================================================
--- incubator/public/trunk/assign_shepherds.py (original)
+++ incubator/public/trunk/assign_shepherds.py Tue May 26 22:56:52 2015
@@ -38,8 +38,11 @@ Rules by which shepherds are assigned:
 
 """
 
-import os
 import sys
+if sys.version_info < (3, 2):
+    raise Exception("Python 3.2 or above is required")
+
+import os
 import re
 import json
 import pickle

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1681890&r1=1681889&r2=1681890&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Tue May 26 22:56:52 2015
@@ -118,8 +118,8 @@ Pickle file:
 # 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 ")
+if sys.version_info < (3, 2):
+    raise Exception("Python 3.2 or above is required")
 
 import subprocess
 import datetime

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1681890&r1=1681889&r2=1681890&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Tue May 26 22:56:52 2015
@@ -1,4 +1,7 @@
 import sys
+if sys.version_info < (3, 2):
+    raise Exception("Python 3.2 or above is required")
+
 import pickle
 import pprint
 from string import Template

Modified: incubator/public/trunk/report_runbook.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/report_runbook.py?rev=1681890&r1=1681889&r2=1681890&view=diff
==============================================================================
--- incubator/public/trunk/report_runbook.py (original)
+++ incubator/public/trunk/report_runbook.py Tue May 26 22:56:52 2015
@@ -20,6 +20,10 @@ Print out steps for a "Report Manager" t
 Incubator's monthly report to the ASF Board of Directors.
 """
 
+import sys
+if sys.version_info < (3, 2):
+    raise Exception("Python 3.2 or above is required")
+
 import argparse
 import datetime
 

Modified: incubator/public/trunk/report_timeline.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/report_timeline.py?rev=1681890&r1=1681889&r2=1681890&view=diff
==============================================================================
--- incubator/public/trunk/report_timeline.py (original)
+++ incubator/public/trunk/report_timeline.py Tue May 26 22:56:52 2015
@@ -15,8 +15,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import datetime
 import sys
+if sys.version_info < (3, 2): 
+        raise Exception("Python 3.2 or above is required")
+
+import datetime
 import argparse
 
 class Timeline(object):



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


Mime
View raw message