Sean Reifschneider <[EMAIL PROTECTED]> added the comment:
Yeah, I'm going to agree that urllib's documentation is clear about it
taking a string instead of a list.
--
assignee: -> jafo
nosy: +jafo
priority: -> normal
resolution: -> wont fix
status: open -> closed
type: -> behavior
_
Benjamin Peterson added the comment:
Does something in the docs lead you to believe urllib.quote should
accept a list of strings? The stdlib tends to shun type-checking to make
cleaner and faster code, and let the client get exceptions like these.
--
nosy: +benjamin.peterson
___
New submission from djc:
>>> urllib.quote(['', 'aa'])
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.5/urllib.py", line 1205, in quote
res = map(safe_map.__getitem__, s)
KeyError: ''
I think this is a weird error message to throw. quote() is obviously
assu