diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-11-01 15:20:31 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-11-01 15:20:31 (GMT) |
commit | 6c5bd40a3e68b63c2406de0c165ee213bd9f91f1 (patch) | |
tree | c5fca21e651006d344961f8f8e149c7f8ac693cf /Lib/urllib/error.py | |
parent | 712b14fc2a41ff7a1b7a00cab0f237ef3d07939a (diff) | |
download | cpython-6c5bd40a3e68b63c2406de0c165ee213bd9f91f1.zip cpython-6c5bd40a3e68b63c2406de0c165ee213bd9f91f1.tar.gz cpython-6c5bd40a3e68b63c2406de0c165ee213bd9f91f1.tar.bz2 |
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
the relevant module. Other cleanup improvements. Patch by flox.
Diffstat (limited to 'Lib/urllib/error.py')
-rw-r--r-- | Lib/urllib/error.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/urllib/error.py b/Lib/urllib/error.py index 300c3fe..d05f850 100644 --- a/Lib/urllib/error.py +++ b/Lib/urllib/error.py @@ -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. |