Python 2.3.4, form.py throws syntax error
Bug #475082 reported by
arshaw
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!
To post a comment you must log in.
Fixed.
http:// github. com/webpy/ webpy/commit/ 1e2637fed6f3470 7e0d7c744c548a4 e60bce3619