]> granicus.if.org Git - python/commitdiff
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
authorSkip Montanaro <skip@pobox.com>
Thu, 1 Mar 2001 04:27:19 +0000 (04:27 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 1 Mar 2001 04:27:19 +0000 (04:27 +0000)
giving it a slight facelift

17 files changed:
Lib/tabnanny.py
Lib/telnetlib.py
Lib/tempfile.py
Lib/test/test___all__.py
Lib/toaiff.py
Lib/tokenize.py
Lib/traceback.py
Lib/tty.py
Lib/urllib.py
Lib/urlparse.py
Lib/uu.py
Lib/warnings.py
Lib/wave.py
Lib/weakref.py
Lib/webbrowser.py
Lib/xdrlib.py
Lib/zipfile.py

index ea4fbc694b0ffa834b0298b58f03cbb3cb854b20..c945dd5057f6a56ada95b85a3cb80977cf732546 100755 (executable)
@@ -16,6 +16,8 @@ import string
 import getopt
 import tokenize
 
+__all__ = ["check"]
+
 verbose = 0
 filename_only = 0
 
index 231618af2ae71e1b6057c475946fab3aff6b37db..6b249e8db416f26d7f2e597022b10ed9a1578319 100644 (file)
@@ -41,6 +41,8 @@ import sys
 import socket
 import select
 
+__all__ = ["Telnet"]
+
 # Tunable parameters
 DEBUGLEVEL = 0
 
index 7d7f92415d5fca35949f84646f954720f335449d..fe4d291b059f3395efd8abe4ddf9655a30fd5dab 100644 (file)
@@ -6,6 +6,8 @@
 
 import os
 
+__all__ = ["mktemp", "TemporaryFile", "tempdir", "gettempprefix"]
+
 # Parameters that the caller may set to override the defaults
 tempdir = None
 template = None
index bcc9d4a33145a189a774bf91bf27f6ea18262d2a..2cc021b47d5123e84715e4a151e92ecc680f916a 100644 (file)
@@ -135,3 +135,19 @@ check_all("sndhdr")
 check_all("socket")
 check_all("sre")
 check_all("stat_cache")
+check_all("tabnanny")
+check_all("telnetlib")
+check_all("tempfile")
+check_all("toaiff")
+check_all("tokenize")
+check_all("traceback")
+check_all("tty")
+check_all("urllib")
+check_all("urlparse")
+check_all("uu")
+check_all("warnings")
+check_all("wave")
+check_all("weakref")
+check_all("webbrowser")
+check_all("xdrlib")
+check_all("zipfile")
index 96d4642040b8e860dd37c5fa046e5f3b38a07ac8..a2b6d6e9cbe644ece9bca98ac9899b0f492fc610 100644 (file)
@@ -13,6 +13,8 @@ import tempfile
 import pipes
 import sndhdr
 
+__all__ = ["error", "toaiff"]
+
 table = {}
 
 t = pipes.Template()
index 9f46612cb665dc7fd5749ff0dc03b854e80cceb1..789d1305313e4db2c80ed24a85fdd9702e18e262 100644 (file)
@@ -14,11 +14,15 @@ __version__ = "Ka-Ping Yee, 26 October 1997; patched, GvR 3/30/98"
 import string, re
 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:
 #     Ignore now accepts \f as whitespace.  Operator now includes '**'.
index b4fe05096565515bb8a1e8e13ba0356072cefceb..89ecb615d54093556b1d2b381d7126991fa61d04 100644 (file)
@@ -4,6 +4,11 @@ import linecache
 import sys
 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 b1904fb5052ca8d6a116263343dff88c14956f64..a72eb6755450bb07d9bb77fb9cdc3cf2f0148534 100644 (file)
@@ -4,6 +4,8 @@
 
 from termios import *
 
+__all__ = ["setraw", "setcbreak"]
+
 # Indexes for termios list.
 IFLAG = 0
 OFLAG = 1
index 00129c9a8d87d84898b838480cd70f8305d54ad1..2eb90f9d7f783f77bc834802d34de155f3adca83 100644 (file)
@@ -28,6 +28,10 @@ import os
 import sys
 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 :-(
 
 MAXFTPCACHE = 10        # Trim the ftp cache beyond this size
index b9ecee167012924b8c9b79ec47e45b6e5a048343..1df83d68d31b13b895c069657e149271cbf2fcac 100644 (file)
@@ -4,6 +4,8 @@ See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding,
 UC Irvine, June 1995.
 """
 
+__all__ = ["urlparse", "urlunparse", "urljoin"]
+
 # A classification of schemes ('' means apply by default)
 uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
                  'https', 'shttp',
index 37bdf6af565ac75b19729bbe1c97bdda93516556..334d436cd62233aeab0bf98f1c259052c3a73899 100755 (executable)
--- a/Lib/uu.py
+++ b/Lib/uu.py
@@ -34,6 +34,8 @@ import binascii
 import os
 import sys
 
+__all__ = ["Error", "encode", "decode"]
+
 class Error(Exception):
     pass
 
index 52aee2687923422758474833027ecba03669eea9..243f215065dcc929c3ab00533820d88b1ce0e7da 100644 (file)
@@ -2,6 +2,9 @@
 
 import sys, re, types
 
+__all__ = ["warn", "showwarning", "formatwarning", "filterwarnings",
+           "resetwarnings"]
+
 defaultaction = "default"
 filters = []
 onceregistry = {}
index ad4f29aae840436f4e32cd17582d3e0bafc97a9d..b5f0e1ceb6b59e2e362cdd2f019f3d7816137432 100644 (file)
@@ -73,6 +73,8 @@ is destroyed.
 
 import __builtin__
 
+__all__ = ["open", "openfp", "Error"]
+
 class Error(Exception):
     pass
 
index 30574efcb5ef13f591144cf0b4b36a640ee53806..a5a2d1d183eaa51c85add844f3205fe2de90b5aa 100644 (file)
@@ -19,6 +19,9 @@ from _weakref import \
 
 ProxyTypes = (ProxyType, CallableProxyType)
 
+__all__ = ["ref", "mapping", "proxy", "getweakrefcount", "getweakrefs",
+           "WeakKeyDictionary", "ReferenceType", "ProxyType",
+           "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
 
 def mapping(dict=None,weakkeys=0):
     if weakkeys:
index 5008a0b6aebbdfe880bc8435354c3a3dd55ee967..6a60c24590e5065ac39337ee67e9fc9e246c3fb0 100644 (file)
@@ -3,6 +3,8 @@
 import os
 import sys
 
+__all__ = ["Error", "open", "get", "register"]
+
 class Error(Exception):
     pass
 
index 621f295772354549d9a6f69f1fb0f34db9c31559..5d012e905b56fe5c6020cc82b364be2c66473d77 100644 (file)
@@ -6,6 +6,8 @@ See: RFC 1014
 
 import struct
 
+__all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
+
 # exceptions
 class Error:
     """Exception class for this module. Use:
index 5a7345ba70d6abe99f2eb57854cd33b4551ed562..39b1511667e7a61ab4e8dc8d0416afed4a027a28 100644 (file)
@@ -10,6 +10,9 @@ try:
 except:
     zlib = None
 
+__all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",
+           "ZipInfo", "ZipFile", "PyZipFile"]
+
 class BadZipfile(Exception):
     pass
 error = BadZipfile      # The exception raised by this module