Details
-
Bug
-
Resolution: Won't Fix
-
Minor
-
1.7.2, 1.8.0, 2.0-developer-preview-3
-
Security Level: Public
-
None
Description
This is broken in most python scripts I've seen. I don't know why someone thought this was correct at some point, but it's obviously wrong and is copied and pasted everywhere:
try:
import sqlite3
except:
sys.exit("ERROR: %s requires python version 2.6 or greater" %
(os.path.basename(sys.argv[0])))
Not having sqlite3 doesn't mean you don't have at least python 2.6. Having sqlite3 doesn't mean you have python 2.6 or later. These two things are entirely unrelated. It's unclear what the goal is here. Do we want to look for python 2.6 features or do we just want to have a later python which is likely to have the sqlite3 module built?