Shishmarev Pavel added the comment:
https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L875
It's redundant to raise and then catch exception.
I mean:
if len(query) and not isinstance(query[0], tuple):
ty, va, tb = sys.exc_info()
raise TypeError("not a valid
Change by Shishmarev Pavel :
--
pull_requests: +10288
___
Python tracker
<https://bugs.python.org/issue35447>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Shishmarev Pavel :
--
keywords: +patch
pull_requests: +10287
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35447>
___
_
New submission from Shishmarev Pavel :
https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L875
It's redundant to raise and then catch exception.
--
components: Library (Lib)
messages: 331436
nosy: PashaWNN
priority: normal
severity: normal
status: open
title: Redu