Bugs item #3308035, was opened at 2011-05-26 20:31
Message generated for change (Settings changed) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=3308035&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SQLite
Group: SQLObject release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Christoph Zwerschke (cito)
>Assigned to: Oleg Broytman (phd)
Summary: Ternary operator breaks compatibility with Py < 2.5
Initial Comment:
SQLObject 1.0.0 has in sqlobject/sqlite/sqliteconnection.py in line 103 the following ternary operator expression:
':%r' % port if port else ''
This should be replaced with
port and ':%r' % port or ''
because otherwise importing the file gives a syntax error on Python < 2.5.
Since there is a Py 2.4 egg on PyPI and in the same function even the decorator syntax for classmethods is avoided, it seems that the code is actually intended to work even with Python 2.3.
After fixing this, please document the minimum required Python version and test with that version before releasing.
----------------------------------------------------------------------
>Comment By: Oleg Broytman (phd)
Date: 2011-05-30 15:13
Message:
Fixed in SQLObject 1.0.1. Thank you!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=3308035&group_id=74338
|