funcparserlib raise syntax error in python 2.4
GoogleCodeExporter opened this issue · 5 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Run program using funcparserlib-0.3.4 under python 2.4
What is the expected output? What do you see instead?
raises SyntaxError in funcparserlib/util.py (line 38)
What version of the product are you using? On what operating system?
funcparserlib-0.3.4
python 2.4
Please provide any additional information below.
I made patch for this problem.
This error is caused by ternary operator (It's supported from python2.4)
Original issue reported on code.google.com by i.tkomiya
on 8 Jan 2011 at 3:13
Attachments:
GoogleCodeExporter commented
Original comment by andrey.vlasovskikh
on 11 Jan 2011 at 1:28
- Changed state: Accepted
GoogleCodeExporter commented
I've applied your patch on top of the 0.3.x branch, revision [a6cf09a5573f].
Could you verify, that this branch is working fine with Python 2.4? If
everything is OK, then I will prepare the maintenance release 0.3.5. Thanks for
your contribution!
BTW, I'm working on a new major version of funcparserlib, but I'm not ready to
share my changes yet. I guess the new version may appear in Februrary 2011.
Original comment by andrey.vlasovskikh
on 11 Jan 2011 at 3:48
- Changed state: Fixed
GoogleCodeExporter commented
I tried newest version, and I can execute normally under python 2.4 environment
(at CentOS 5.5)
Thankyou for accepting patch!
Regards,
Original comment by i.tkomiya
on 12 Jan 2011 at 5:25
GoogleCodeExporter commented
Cool! 0.3.5 will appear soon :)
Original comment by andrey.vlasovskikh
on 12 Jan 2011 at 7:37
- Changed state: Verified
GoogleCodeExporter commented
Original comment by andrey.vlasovskikh
on 11 Jan 2011 at 1:27
- Added labels: Milestone-0.3.5