[Python-checkins] CVS: python/dist/src/Lib tabnanny.py,1.11,1.12 telnetlib.py,1.10,1.11 tempfile.py,1.28,1.29 toaiff.py,1.9,1.10 tokenize.py,1.18,1.19 traceback.py,1.21,1.22 tty.py,1.4,1.5 urllib.py,1.119,1.120 urlparse.py,1.28,1.29 uu.py,1.15,1.16 warnings.py,1.6,1.7 wave.py,1.14,1.15 weakref.py,1.5,1.6 webbrowser.py,1.13,1.14 xdrlib.py,1.11,1.12 zipfile.py,1.7,1.8
Skip Montanaro
montanaro@users.sourceforge.net
2001年2月28日 20:27:21 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15703
Modified Files:
tabnanny.py telnetlib.py tempfile.py toaiff.py tokenize.py
traceback.py tty.py urllib.py urlparse.py uu.py warnings.py
wave.py weakref.py webbrowser.py xdrlib.py zipfile.py
Log Message:
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
giving it a slight facelift
Index: tabnanny.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tabnanny.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** tabnanny.py 2001年01月15日 03:26:36 1.11
--- tabnanny.py 2001年03月01日 04:27:19 1.12
***************
*** 17,20 ****
--- 17,22 ----
import tokenize
+ __all__ = ["check"]
+
verbose = 0
filename_only = 0
Index: telnetlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/telnetlib.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** telnetlib.py 2001年02月09日 07:10:12 1.10
--- telnetlib.py 2001年03月01日 04:27:19 1.11
***************
*** 42,45 ****
--- 42,47 ----
import select
+ __all__ = ["Telnet"]
+
# Tunable parameters
DEBUGLEVEL = 0
Index: tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tempfile.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** tempfile.py 2001年02月19日 15:34:10 1.28
--- tempfile.py 2001年03月01日 04:27:19 1.29
***************
*** 7,10 ****
--- 7,12 ----
import os
+ __all__ = ["mktemp", "TemporaryFile", "tempdir", "gettempprefix"]
+
# Parameters that the caller may set to override the defaults
tempdir = None
Index: toaiff.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/toaiff.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** toaiff.py 2001年01月15日 03:26:36 1.9
--- toaiff.py 2001年03月01日 04:27:19 1.10
***************
*** 14,17 ****
--- 14,19 ----
import sndhdr
+ __all__ = ["error", "toaiff"]
+
table = {}
Index: tokenize.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tokenize.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** tokenize.py 2001年02月09日 11:06:38 1.18
--- tokenize.py 2001年03月01日 04:27:19 1.19
***************
*** 15,23 ****
from token import *
COMMENT = N_TOKENS
tok_name[COMMENT] = 'COMMENT'
NL = N_TOKENS + 1
tok_name[NL] = 'NL'
!
# Changes from 1.3:
--- 15,27 ----
from token import *
+ import token
+ __all__ = [x for x in dir(token) if x[0] != '_'] + ["COMMENT", "tokenize", "NL"]
+ del token
+
COMMENT = N_TOKENS
tok_name[COMMENT] = 'COMMENT'
NL = N_TOKENS + 1
tok_name[NL] = 'NL'
! N_TOKENS += 2
# Changes from 1.3:
Index: traceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/traceback.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** traceback.py 2001年02月10日 00:22:33 1.21
--- traceback.py 2001年03月01日 04:27:19 1.22
***************
*** 5,8 ****
--- 5,13 ----
import types
+ __all__ = ['extract_stack', 'extract_tb', 'format_exception',
+ 'format_exception_only', 'format_list', 'format_stack',
+ 'format_tb', 'print_exc', 'print_exception', 'print_last',
+ 'print_stack', 'print_tb', 'tb_lineno']
+
def _print(file, str='', terminator='\n'):
file.write(str+terminator)
Index: tty.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tty.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** tty.py 2001年02月27日 21:23:31 1.4
--- tty.py 2001年03月01日 04:27:19 1.5
***************
*** 5,8 ****
--- 5,10 ----
from termios import *
+ __all__ = ["setraw", "setcbreak"]
+
# Indexes for termios list.
IFLAG = 0
Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -r1.119 -r1.120
*** urllib.py 2001年02月28日 08:26:44 1.119
--- urllib.py 2001年03月01日 04:27:19 1.120
***************
*** 29,32 ****
--- 29,36 ----
import types
+ __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve",
+ "urlcleanup", "quote", "quote_plus", "unquote", "unquote_plus",
+ "urlencode"]
+
__version__ = '1.15' # XXX This version is not always updated :-(
Index: urlparse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urlparse.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** urlparse.py 2001年01月15日 03:34:38 1.28
--- urlparse.py 2001年03月01日 04:27:19 1.29
***************
*** 5,8 ****
--- 5,10 ----
"""
+ __all__ = ["urlparse", "urlunparse", "urljoin"]
+
# A classification of schemes ('' means apply by default)
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
Index: uu.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/uu.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** uu.py 2001年01月15日 03:34:38 1.15
--- uu.py 2001年03月01日 04:27:19 1.16
***************
*** 35,38 ****
--- 35,40 ----
import sys
+ __all__ = ["Error", "encode", "decode"]
+
class Error(Exception):
pass
Index: warnings.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/warnings.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** warnings.py 2001年02月28日 22:26:36 1.6
--- warnings.py 2001年03月01日 04:27:19 1.7
***************
*** 3,6 ****
--- 3,9 ----
import sys, re, types
+ __all__ = ["warn", "showwarning", "formatwarning", "filterwarnings",
+ "resetwarnings"]
+
defaultaction = "default"
filters = []
Index: wave.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/wave.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** wave.py 2001年01月15日 03:34:38 1.14
--- wave.py 2001年03月01日 04:27:19 1.15
***************
*** 74,77 ****
--- 74,79 ----
import __builtin__
+ __all__ = ["open", "openfp", "Error"]
+
class Error(Exception):
pass
Index: weakref.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/weakref.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** weakref.py 2001年03月01日 03:06:03 1.5
--- weakref.py 2001年03月01日 04:27:19 1.6
***************
*** 20,23 ****
--- 20,26 ----
ProxyTypes = (ProxyType, CallableProxyType)
+ __all__ = ["ref", "mapping", "proxy", "getweakrefcount", "getweakrefs",
+ "WeakKeyDictionary", "ReferenceType", "ProxyType",
+ "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
def mapping(dict=None,weakkeys=0):
Index: webbrowser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/webbrowser.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** webbrowser.py 2001年02月28日 08:26:44 1.13
--- webbrowser.py 2001年03月01日 04:27:19 1.14
***************
*** 4,7 ****
--- 4,9 ----
import sys
+ __all__ = ["Error", "open", "get", "register"]
+
class Error(Exception):
pass
Index: xdrlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xdrlib.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** xdrlib.py 2001年01月15日 03:34:38 1.11
--- xdrlib.py 2001年03月01日 04:27:19 1.12
***************
*** 7,10 ****
--- 7,12 ----
import struct
+ __all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
+
# exceptions
class Error:
Index: zipfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/zipfile.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** zipfile.py 2001年02月28日 17:56:26 1.7
--- zipfile.py 2001年03月01日 04:27:19 1.8
***************
*** 11,14 ****
--- 11,17 ----
zlib = None
+ __all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",
+ "ZipInfo", "ZipFile", "PyZipFile"]
+
class BadZipfile(Exception):
pass