[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Backport syntax to ancient pythons so as to give useful...



Update of /home/minion/cvsroot/src/minion
In directory moria.seul.org:/tmp/cvs-serv10258

Modified Files:
	setup.py 
Log Message:
Backport syntax to ancient pythons so as to give useful errors

Index: setup.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/setup.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- setup.py	22 Nov 2002 21:00:52 -0000	1.9
+++ setup.py	2 Dec 2002 03:45:56 -0000	1.10
@@ -5,12 +5,15 @@
 
 # Check the version.  We need to make sure version_info exists before we
 # compare to it: it was only added as of Python version 1.6.
+#
+# (Because of syntax issues, this file won't even parse for any python older
+#  than 1.3.  I'm okay with that.)
 if not hasattr(sys, 'version_info') or sys.version_info < (2, 0, 0):
     print "Sorry, but I require Python 2.0 or higher."
     sys.exit(0)
 
 try:
-    import zlib as _
+    import zlib
 except ImportError, _:
     print "Zlib support seems to be missing; install python with zlib support."
     sys.exit(0)