mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
the relevant module. Other cleanup improvements. Patch by flox.
This commit is contained in:
parent
712b14fc2a
commit
6c5bd40a3e
4 changed files with 40 additions and 18 deletions
|
@ -13,6 +13,9 @@ response.
|
|||
|
||||
import urllib.response
|
||||
|
||||
__all__ = ['URLError', 'HTTPError', 'ContentTooShortError']
|
||||
|
||||
|
||||
# do these error classes make sense?
|
||||
# make sure all of the IOError stuff is overridden. we just want to be
|
||||
# subtypes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue