incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject svn commit: r1790764 - /incubator/public/trunk/devlists.py
Date Sun, 09 Apr 2017 22:37:44 GMT
Author: johndament
Date: Sun Apr  9 22:37:44 2017
New Revision: 1790764

URL: http://svn.apache.org/viewvc?rev=1790764&view=rev
Log:
Downgrade devlists to python 2.7

Modified:
    incubator/public/trunk/devlists.py

Modified: incubator/public/trunk/devlists.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/devlists.py?rev=1790764&r1=1790763&r2=1790764&view=diff
==============================================================================
--- incubator/public/trunk/devlists.py (original)
+++ incubator/public/trunk/devlists.py Sun Apr  9 22:37:44 2017
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python2.7
  
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
@@ -20,11 +20,11 @@ Generates a list of podling dev mailing
 """
  
 import sys
-if sys.version_info < (3, 2):
-    raise Exception("Python 3.2 or above is required")
+if sys.version_info < (2, 7):
+    raise Exception("Python 2.7 or above is required")
  
 import xml.dom.minidom
-import urllib.request
+import urllib
 
 PODLINGS_URL = 'http://svn.apache.org/repos/asf/incubator/public/trunk/content/podlings.xml'
 SPECIALS = ['wave','blur']
@@ -48,7 +48,7 @@ def processPodlings(xmlFile):
             print("dev@%s.incubator.apache.org" % podling_id)
  
 def main():
-    podlings_xml = urllib.request.urlopen(PODLINGS_URL)
+    podlings_xml = urllib.urlopen(PODLINGS_URL)
     processPodlings(podlings_xml)
  
 if __name__ == '__main__':



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


Mime
View raw message