Exit early if not Python >= 2.6, < 3

This commit is contained in:
Stein Magnus Jodal 2010-08-03 15:13:37 +02:00
parent 1cfddf3d90
commit 9ff3175b44
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ Another great release.
**Changes**
- None yet.
- Exit early if not Python >= 2.6, < 3.
0.1.0a3 (2010-08-03)

View File

@ -1,3 +1,7 @@
import sys
if not (2, 6) <= sys.version_info < (3,):
sys.exit(u'Mopidy requires Python >= 2.6, < 3')
from mopidy import settings as raw_settings
def get_version():