[Python-checkins] r65795 - in python/trunk: Lib/cookielib.py Lib/csv.py Lib/os.py Lib/urllib2.py Lib/weakref.py Misc/NEWS
brett.cannon
python-checkins at python.org
Mon Aug 18 02:46:23 CEST 2008
Author: brett.cannon
Date: Mon Aug 18 02:46:22 2008
New Revision: 65795
Log:
Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
the module but exposed as part of the API.
Modified:
python/trunk/Lib/cookielib.py
python/trunk/Lib/csv.py
python/trunk/Lib/os.py
python/trunk/Lib/urllib2.py
python/trunk/Lib/weakref.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/cookielib.py
==============================================================================
--- python/trunk/Lib/cookielib.py (original)
+++ python/trunk/Lib/cookielib.py Mon Aug 18 02:46:22 2008
@@ -26,7 +26,8 @@
"""
__all__ = ['Cookie', 'CookieJar', 'CookiePolicy', 'DefaultCookiePolicy',
- 'FileCookieJar', 'LWPCookieJar', 'LoadError', 'MozillaCookieJar']
+ 'FileCookieJar', 'LWPCookieJar', 'lwp_cookie_str', 'LoadError',
+ 'MozillaCookieJar']
import re, urlparse, copy, time, urllib
try:
Modified: python/trunk/Lib/csv.py
==============================================================================
--- python/trunk/Lib/csv.py (original)
+++ python/trunk/Lib/csv.py Mon Aug 18 02:46:22 2008
@@ -18,7 +18,8 @@
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" ]
Modified: python/trunk/Lib/os.py
==============================================================================
--- python/trunk/Lib/os.py (original)
+++ python/trunk/Lib/os.py Mon Aug 18 02:46:22 2008
@@ -28,7 +28,7 @@
_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"]
Modified: python/trunk/Lib/urllib2.py
==============================================================================
--- python/trunk/Lib/urllib2.py (original)
+++ python/trunk/Lib/urllib2.py Mon Aug 18 02:46:22 2008
@@ -107,8 +107,8 @@
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
Modified: python/trunk/Lib/weakref.py
==============================================================================
--- python/trunk/Lib/weakref.py (original)
+++ python/trunk/Lib/weakref.py Mon Aug 18 02:46:22 2008
@@ -26,7 +26,7 @@
ProxyTypes = (ProxyType, CallableProxyType)
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
- "WeakKeyDictionary", "ReferenceType", "ProxyType",
+ "WeakKeyDictionary", "ReferenceError", "ReferenceType", "ProxyType",
"CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Aug 18 02:46:22 2008
@@ -48,6 +48,9 @@
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'.
More information about the Python-checkins
mailing list