summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Wagner <rwagner@mythtv.org>2011-02-23 07:08:34 (GMT)
committer Raymond Wagner <rwagner@mythtv.org>2011-02-23 07:08:34 (GMT)
commite0a77202537aca7809371697e57eed5b8151b6aa (patch)
tree88c02f618b4639271a9cdf1e1a8d8a4dfcb73af6
parent8ba07a0ae3b31a2f3f87f6822b5efdaa8ff1bd9c (diff)
Prevent Python bindings from loading against Python 2.4 or previous.
-rw-r--r--mythtv/bindings/python/MythTV/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mythtv/bindings/python/MythTV/__init__.py b/mythtv/bindings/python/MythTV/__init__.py
index a855b7c..622ed60 100644
--- a/mythtv/bindings/python/MythTV/__init__.py
+++ b/mythtv/bindings/python/MythTV/__init__.py
@@ -53,8 +53,10 @@ from methodheap import *
from sys import version_info
if version_info >= (2, 6): # 2.6 or newer
exec(import26)
-else:
+elif version_info >= (2, 5):
exec(importall)
+else:
+ raise Exception("The MythTV Python bindings will only operate against Python 2.5 or later.")
__version__ = OWN_VERSION
static.mysqldb = MySQLdb.version_info