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:
Senthil Kumaran 2011-11-01 23:20:31 +08:00
parent 712b14fc2a
commit 6c5bd40a3e
4 changed files with 40 additions and 18 deletions

View file

@ -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.