carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

r31 needlessly breaks Python 2.4 compatibility #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. checkout trunk version of django-rosetta
2. install in project
3. run project with Python 2.4

What is the expected output? What do you see instead?

Django-rosetta should work.  Instead there is a syntax error on views.py
line 127.

What version of the product are you using? On what operating system?

Trunk (r32) on Linux.

Please provide any additional information below.

The problem is the use of the one-line if...else syntax.  The same effect
can be achieved using normal if...else syntax without breaking Python 2.4.
 Patch attached.

Original issue reported on code.google.com by carl.j.meyer on 4 Aug 2008 at 6:35

Attachments:

GoogleCodeExporter commented 8 years ago
A bad habit of mine, sorry.
Well spotted, though, thank you. Fixed in rev [33]

Original comment by mbonetti on 4 Aug 2008 at 9:03