Skip to content

Commit fff14ce

Browse files
author
Tom De Smedt
committed
disable psyco for Python 2.7+
1 parent 35e2d4e commit fff14ce

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

nodebox/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
# animation & motion tweening, and simple 2D physics.
77

88
__author__ = "Tom De Smedt, Frederik De Bleser"
9-
__version__ = "1.6"
10-
__copyright__ = "Copyright (c) 2008-2010 City In A Bottle (cityinabottle.org)"
9+
__version__ = "1.7"
10+
__copyright__ = "Copyright (c) 2008-2012 City In A Bottle (cityinabottle.org)"
1111
__license__ = "BSD"
1212

13-
try: import psyco; psyco.profile()
14-
except:
15-
try: from ext import psyco; psyco.profile()
13+
import sys
14+
if sys.version_info < (2,7):
15+
try: import psyco; psyco.profile()
1616
except:
17-
pass
17+
try: from ext import psyco; psyco.profile()
18+
except:
19+
pass
1820

1921
import nodebox

0 commit comments

Comments
 (0)