Skip to content

Commit

Permalink
Prevent Python bindings from loading against Python 2.4 or previous.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Feb 23, 2011
1 parent 8ba07a0 commit e0a7720
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/bindings/python/MythTV/__init__.py
Expand Up @@ -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
Expand Down

0 comments on commit e0a7720

Please sign in to comment.