[Paste] StringIO expects read buffer, not list,
if POST params is empty.
Hey,
Line 212 of paste/fixture.py (Paste 0.9.3) looks like:
if params and isinstance(params, (list, tuple, dict)):
but if params is an empty list, such as might be passed in a POST with no
content, then the StringIO call on line 225 blows up expecting a read
buffer, not list.
I removed the 'params and' from the test and it works, so I'm curious if
it's necessary to have that extra test in there. (Especially as you set the
default to '', is that a good idea in this case? Perhaps making it default
to None and then you can make the test "if params is not None and
isinstance..."
Thanks
_______________________________________________
Paste-users mailing list
Paste-users@???
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users