[Patches] [ python-Patches-848870 ] Flakey urllib2.parse_http_list
SourceForge.net
noreply at sourceforge.net
Tue Nov 25 06:38:54 EST 2003
Patches item #848870, was opened at 2003-11-25 22:36
Message generated for change (Settings changed) made by zenzen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=848870&group_id=5470
>Category: Library (Lib)
>Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Stuart Bishop (zenzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Flakey urllib2.parse_http_list
Initial Comment:
Breaks with the following challenge:
realm="localhost",nonce="764d66b5e8c907eb5873d5d4c2131
1a1ad62535c",qop=auth,charset=utf-8,algorithm=md5-sess'''
'realm="localhost",nonce="764d66b5e8c907eb5873d5d4c213
11a1ad62535c",qop=auth,charset=utf-8,algorithm=md5-sess
Suggest changing the implementation to:
import csv
def parse_http_list(s):
"""Parse lists as described by RFC 2068 Section 2.
In particular, parse comman-separated lists where the
elements of
the list may include quoted-strings. A quoted-string could
contain a comma.
"""
return csv.reader([s]).next()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=848870&group_id=5470
More information about the Patches
mailing list