]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
authorBrett Cannon <bcannon@gmail.com>
Mon, 18 Aug 2008 00:46:22 +0000 (00:46 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 18 Aug 2008 00:46:22 +0000 (00:46 +0000)
the module but exposed as part of the API.

Lib/cookielib.py
Lib/csv.py
Lib/os.py
Lib/urllib2.py
Lib/weakref.py
Misc/NEWS

index 9439b5c295b9bd7f8cd2e7ce95735e326f3c642a..6b59794869a07491de8276d1f8322ed43cbb4740 100644 (file)
@@ -26,7 +26,8 @@ http://wwwsearch.sf.net/):
 """
 
 __all__ = ['Cookie', 'CookieJar', 'CookiePolicy', 'DefaultCookiePolicy',
-           'FileCookieJar', 'LWPCookieJar', 'LoadError', 'MozillaCookieJar']
+           'FileCookieJar', 'LWPCookieJar', 'lwp_cookie_str', 'LoadError',
+           'MozillaCookieJar']
 
 import re, urlparse, copy, time, urllib
 try:
index 4f6e5c03a27bcce4dec8ab139a0a0743953bd925..ff51a8648447c5dd198958944efc12ce5c09383d 100644 (file)
@@ -18,7 +18,8 @@ except ImportError:
     from StringIO import StringIO
 
 __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",
             "unregister_dialect", "__version__", "DictReader", "DictWriter" ]
 
index def448f4722396b1d7590f302863fb0e1a631da1..715ff202f48dbf3a2c51ea66ca6d5e4a30ba4b30 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -28,7 +28,7 @@ import sys, errno
 _names = sys.builtin_module_names
 
 # 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",
            "SEEK_SET", "SEEK_CUR", "SEEK_END"]
 
index 7b209d4c63efb2db1f65ed11ef1e8c484b3f94cd..ef8bbc8dabc95a8d566dd15ee900824a72cd8023 100644 (file)
@@ -107,8 +107,8 @@ except ImportError:
     from StringIO import StringIO
 
 from urllib import (unwrap, unquote, splittype, splithost, quote,
-     addinfourl, splitport, splitquery,
-     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
+     addinfourl, splitport,
+     splitattr, ftpwrapper, splituser, splitpasswd, splitvalue)
 
 # support for FileHandler, proxies via environment variables
 from urllib import localhost, url2pathname, getproxies
index 70b383e2bee521e1b63cba6d88b574bec61456a4..78b74ad3207e33c78d90b5e4cee017e1a0525dda 100644 (file)
@@ -26,7 +26,7 @@ from exceptions import ReferenceError
 ProxyTypes = (ProxyType, CallableProxyType)
 
 __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
-           "WeakKeyDictionary", "ReferenceType", "ProxyType",
+           "WeakKeyDictionary", "ReferenceError", "ReferenceType", "ProxyType",
            "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
 
 
index 665b185507010415155d8484874df4bc122b514d..76459d6a00bab7009c466f98d875922720e3cf8c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,6 +48,9 @@ Core and Builtins
 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 unneeded imports of 'sys' and 'warnings' from 'io'.