summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/error.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-11-01 15:20:31 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-11-01 15:20:31 (GMT)
commit6c5bd40a3e68b63c2406de0c165ee213bd9f91f1 (patch)
treec5fca21e651006d344961f8f8e149c7f8ac693cf /Lib/urllib/error.py
parent712b14fc2a41ff7a1b7a00cab0f237ef3d07939a (diff)
downloadcpython-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.py3
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.