Permalink
Browse files

Prevent Python bindings from loading against Python 2.4 or previous.

  • Loading branch information...
1 parent 8ba07a0 commit e0a77202537aca7809371697e57eed5b8151b6aa @wagnerrp wagnerrp committed Feb 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/bindings/python/MythTV/__init__.py
View
4 mythtv/bindings/python/MythTV/__init__.py
@@ -53,8 +53,10 @@
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

0 comments on commit e0a7720

Please sign in to comment.