webpy/webpy — Issue #114: Python 2.4 incompatibilty
Author: pbertera
Created: 2011-11-03 10:05:41+00:00
State: open

```
[root@ade]# python2.4 ./application.py
Traceback (most recent call last):
File "./application.py", line 8, in ?
import web
File "/opt/indicePA/IPA/web/__init__.py", line 27, in ?
from application import *
File "/opt/indicePA/IPA/web/application.py", line 639
SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'
^
SyntaxError: invalid syntax

```

Sobstituting the 639 line of application.py with old-style code:

```python
if sys.platform.startswith('java'):
SUFFIX = '$py.class'
else:
'.pyc'
````
works fine.