Menu

Diff of /branches/MySQLdb-1.2/MySQLdb/setup.py [r640] .. [r641]  Maximize  Restore

Switch to side-by-side view

--- a/branches/MySQLdb-1.2/MySQLdb/setup.py
+++ b/branches/MySQLdb-1.2/MySQLdb/setup.py
@@ -4,8 +4,8 @@
 import sys
 from setuptools import setup, Extension
 
-if sys.version_info < (2, 3):
-    raise Error("Python-2.3 or newer is required")
+if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:
+    raise Error("Python 2.3 or newer is required")
 
 if os.name == "posix":
     from setup_posix import get_config