[issue19094] urljoin should raise a TypeError if URL is not a string
Vajrasky Kok
report at bugs.python.org
Fri Sep 27 07:21:49 CEST 2013
Vajrasky Kok added the comment:
What about this one?
>>> urljoin(['a'], [])
['a']
>>> urljoin(['a'], ['b'])
..... omitted ......
AttributeError: 'list' object has no attribute 'decode'
Is this desirable? Both patches missed this case. Should we only accept str and bytes?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19094>
_______________________________________
More information about the Python-bugs-list
mailing list