1. Gustavo Picón
  2. django-treebeard
  3. Issues
Issue #39 resolved

Python 2.5+ syntax cause installation failure in Python 2.4

created an issue

tests.py contains Python 2.5+ syntax at line 237 that cause installation failure when Python 2.4 is used. Python 2.5+ in question is conditional expression described in PEP 308 (X if C else Y). Since some major Linux distributions still use Python 2.4 I would recommend patching the line, otherwise minimum requirement described in the documentation should be updated.

{{{ byte-compiling /usr/lib/python2.4/site-packages/treebeard/tests.py to tests.pyc

File "/usr/lib/python2.4/site-packages/treebeard/tests.py", line 237 '_proxy' if p else '', ^ SyntaxError: invalid syntax }}}

Comments (1)

  1. Log in to comment