Kaydet (Commit) 88f801d4 authored tarafından Brett Cannon's avatar Brett Cannon

Update __all__ for cookielib, csv, os, and urllib2 for objects imported into

the module but exposed as part of the API.
üst 7b96f07f
...@@ -26,7 +26,8 @@ http://wwwsearch.sf.net/): ...@@ -26,7 +26,8 @@ http://wwwsearch.sf.net/):
""" """
__all__ = ['Cookie', 'CookieJar', 'CookiePolicy', 'DefaultCookiePolicy', __all__ = ['Cookie', 'CookieJar', 'CookiePolicy', 'DefaultCookiePolicy',
'FileCookieJar', 'LWPCookieJar', 'LoadError', 'MozillaCookieJar'] 'FileCookieJar', 'LWPCookieJar', 'lwp_cookie_str', 'LoadError',
'MozillaCookieJar']
import re, urlparse, copy, time, urllib import re, urlparse, copy, time, urllib
try: try:
......
...@@ -18,7 +18,8 @@ except ImportError: ...@@ -18,7 +18,8 @@ except ImportError:
from StringIO import StringIO from StringIO import StringIO
__all__ = [ "QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE", __all__ = [ "QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE",
"Error", "Dialect", "excel", "excel_tab", "reader", "writer", "Error", "Dialect", "__doc__", "excel", "excel_tab",
"field_size_limit", "reader", "writer",
"register_dialect", "get_dialect", "list_dialects", "Sniffer", "register_dialect", "get_dialect", "list_dialects", "Sniffer",
"unregister_dialect", "__version__", "DictReader", "DictWriter" ] "unregister_dialect", "__version__", "DictReader", "DictWriter" ]
......
...@@ -28,7 +28,7 @@ import sys, errno ...@@ -28,7 +28,7 @@ import sys, errno
_names = sys.builtin_module_names _names = sys.builtin_module_names
# Note: more names are added to __all__ later. # Note: more names are added to __all__ later.
__all__ = ["altsep", "curdir", "pardir", "sep", "pathsep", "linesep", __all__ = ["altsep", "curdir", "pardir", "sep", "extsep", "pathsep", "linesep",
"defpath", "name", "path", "devnull", "defpath", "name", "path", "devnull",
"SEEK_SET", "SEEK_CUR", "SEEK_END"] "SEEK_SET", "SEEK_CUR", "SEEK_END"]
......
...@@ -107,8 +107,8 @@ except ImportError: ...@@ -107,8 +107,8 @@ except ImportError:
from StringIO import StringIO from StringIO import StringIO
from urllib import (unwrap, unquote, splittype, splithost, quote, from urllib import (unwrap, unquote, splittype, splithost, quote,
addinfourl, splitport, splitquery, addinfourl, splitport,
splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue) splitattr, ftpwrapper, splituser, splitpasswd, splitvalue)
# support for FileHandler, proxies via environment variables # support for FileHandler, proxies via environment variables
from urllib import localhost, url2pathname, getproxies from urllib import localhost, url2pathname, getproxies
......
...@@ -26,7 +26,7 @@ from exceptions import ReferenceError ...@@ -26,7 +26,7 @@ from exceptions import ReferenceError
ProxyTypes = (ProxyType, CallableProxyType) ProxyTypes = (ProxyType, CallableProxyType)
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs", __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
"WeakKeyDictionary", "ReferenceType", "ProxyType", "WeakKeyDictionary", "ReferenceError", "ReferenceType", "ProxyType",
"CallableProxyType", "ProxyTypes", "WeakValueDictionary"] "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
......
...@@ -48,6 +48,9 @@ Core and Builtins ...@@ -48,6 +48,9 @@ Core and Builtins
Library Library
------- -------
- Update __all__ for cookielib, csv, os, urllib2, and weakref to include things
imported into the module but exposed as part of the module's API.
- Remove an unneeded import of abc.ABCMeta from 'inspect'. - Remove an unneeded import of abc.ABCMeta from 'inspect'.
- Remove unneeded imports of 'sys' and 'warnings' from 'io'. - Remove unneeded imports of 'sys' and 'warnings' from 'io'.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment