This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author efosmark
Recipients efosmark
Date 2009-06-07.22:07:34
SpamBayes Score 0.004084328
Marked as misclassified No
Message-id <1244412456.94.0.493968112391.issue6234@psf.upfronthosting.co.za>
In-reply-to
Content
Right now, it seems impossible to use cgi.FieldStorage in 3.0 if you're
giving it environ['wsgi.input'] like so:

    post_data = cgi.FieldStorage(
        fp=environ["wsgi.input"],
        environ=environ,
        keep_blank_values=True
        )


It gives the following error:

      File "/usr/local/lib/python3.0/cgi.py", line 489, in __init__
        self.read_urlencoded()
      File "/usr/local/lib/python3.0/cgi.py", line 589, in read_urlencoded
        self.strict_parsing):
      File "/usr/local/lib/python3.0/urllib/parse.py", line 377, in
parse_qsl
        pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
TypeError: Type str doesn't support the buffer API
History
Date User Action Args
2009-06-07 22:07:37efosmarksetrecipients: + efosmark
2009-06-07 22:07:36efosmarksetmessageid: <1244412456.94.0.493968112391.issue6234@psf.upfronthosting.co.za>
2009-06-07 22:07:35efosmarklinkissue6234 messages
2009-06-07 22:07:35efosmarkcreate