Python 2.3.4, form.py throws syntax error

Bug #475082 reported by arshaw
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
web.py
Fix Committed
Medium
Anand Chitipothu

Bug Description

throws a syntax error on line 180. this line:

> return " ".join('%s="%s"' % (k, net.websafe(v)) for k, v in self.items())

needs to be changed to this....

> return " ".join(['%s="%s"' % (k, net.websafe(v)) for k, v in self.items()])

... to work in 2.3.4. This is actually really strange. Works fine in 2.3.7, weird that there'd be different in syntax parsing between minor versions.

it'd be nice to get this officially in the next release b/c my shared host only has python 2.3.4. thanks!

Revision history for this message
Anand Chitipothu (anandology) wrote :
Changed in webpy:
assignee: nobody → Anand Chitipothu (anandology)
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
arshaw (adamrshaw) wrote :

cool thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.