]> granicus.if.org Git - python/commitdiff
__all__ for several more modules
authorSkip Montanaro <skip@pobox.com>
Mon, 12 Feb 2001 02:00:42 +0000 (02:00 +0000)
committerSkip Montanaro <skip@pobox.com>
Mon, 12 Feb 2001 02:00:42 +0000 (02:00 +0000)
12 files changed:
Lib/poplib.py
Lib/posixfile.py
Lib/posixpath.py
Lib/pprint.py
Lib/pre.py
Lib/profile.py
Lib/pstats.py
Lib/pty.py
Lib/py_compile.py
Lib/pyclbr.py
Lib/quopri.py
Lib/test/test___all__.py

index c67cbc67644f38d100adba031163c138ca090696..fb24a0f9c5b83c655d305ea31178426a87ede990 100644 (file)
@@ -14,6 +14,8 @@ Based on the J. Myers POP3 draft, Jan. 96
 
 import re, socket
 
+__all__ = ["POP3","error_proto"]
+
 # Exception raised when an error or invalid response is received:
 
 class error_proto(Exception): pass
index 58c4b4f5f890c37c55c83c63011501d8d8490e03..da374ad9a998d26046b52d1d0ef873b9adf1e76f 100644 (file)
@@ -53,6 +53,8 @@ f.lock(mode [, len [, start [, whence]]])
               query only
 """
 
+__all__ = ["open","fileopen","SEEK_SET","SEEK_CUR","SEEK_END"]
+
 class _posixfile_:
     """File wrapper class that provides extra POSIX file routines."""
 
index 2d18f5d47abf378a1f9faf7bca63f81dc927f9ac..223d6ba3229382d12ee546b78a4e4ff57eb3a9f2 100644 (file)
@@ -13,6 +13,11 @@ for manipulation of the pathname component of URLs.
 import os
 import stat
 
+__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
+           "basename","dirname","commonprefix","getsize","getmtime",
+           "getatime","islink","exists","isdir","isfile","ismount",
+           "walk","expanduser","expandvars","normpath","abspath",
+           "samefile","sameopenfile","samestat"]
 
 # Normalize the case of a pathname.  Trivial in Posix, string.lower on Mac.
 # On MS-DOS this may also turn slashes into backslashes; however, other
index 8e10e9d9dc84d579385ad8aaac1d8eda9c6450d7..814ca48af0708e5b3b0659e0eb938020dbbc2525 100644 (file)
@@ -41,6 +41,8 @@ try:
 except ImportError:
     from StringIO import StringIO
 
+__all__ = ["pprint","pformat","isreadable","isrecursive","saferepr",
+           "PrettyPrinter"]
 
 def pprint(object, stream=None):
     """Pretty-print a Python object to a stream [default is sys.sydout]."""
index 35d3e3a9106d3c31cd814e4ed9d42a3054b69206..30f049193d83512a3d466f412a99fe52e0c17f41 100644 (file)
@@ -87,6 +87,8 @@ This module also defines an exception 'error'.
 import sys
 from pcre import *
 
+__all__ = ["match","search","sub","subn","split","findall","escape","compile"]
+
 #
 # First, the public part of the interface:
 #
index c32b3f8b3bc3e62f9c774272d552f64b5a54565e..afc47eb347ae5adba6fe6e5bb359d2b1148df5fd 100755 (executable)
@@ -40,6 +40,7 @@ import os
 import time
 import marshal
 
+__all__ = ["run","help","Profile"]
 
 # Sample timer for use with
 #i_count = 0
index 764d89c95eabab9d0e722b892993895452015d01..ea459d72003592cb0f5559449143c7b09cb39f5f 100644 (file)
@@ -39,6 +39,8 @@ import re
 
 import fpformat
 
+__all__ = ["Stats"]
+
 class Stats:
     """This class is used for creating reports from data generated by the
     Profile class.  It is a "friend" of that class, and imports data either
index ef2113bbb08f1dd5d79ab3e6435ae3ec05ea3731..64d391b63c68994488d533a6165102e1b85628d3 100644 (file)
@@ -10,6 +10,8 @@ from select import select
 import os, FCNTL
 import tty
 
+__all__ = ["openpty","fork","spawn"]
+
 STDIN_FILENO = 0
 STDOUT_FILENO = 1
 STDERR_FILENO = 2
index da3bdafb9694e9f14bfce4cf41e615ddbc6b4adb..48c4afc36239f9ff5b0522956dd08b6bb63234ce 100644 (file)
@@ -6,6 +6,8 @@ This module has intimate knowledge of the format of .pyc files.
 import imp
 MAGIC = imp.get_magic()
 
+__all__ = ["compile"]
+
 def wr_long(f, x):
     """Internal; write a 32-bit int to a file in little-endian order."""
     f.write(chr( x        & 0xff))
index b4e934bff7421c1d022609a92e99f5d3f57cfd5d..c9bb2fe2bbb19fe1f9941963b36796ac8e1a95d4 100644 (file)
@@ -59,6 +59,8 @@ import imp
 import re
 import string
 
+__all__ = ["readmodule"]
+
 TABWIDTH = 8
 
 _getnext = re.compile(r"""
index 5bb11f653d7fed76f886eb4079e794d412ad6da5..5f5e80c6dbfbd8bea1031704744bb66974485c6b 100755 (executable)
@@ -4,6 +4,8 @@
 
 # (Dec 1991 version).
 
+__all__ = ["encode","decode"]
+
 ESCAPE = '='
 MAXLINESIZE = 76
 HEX = '0123456789ABCDEF'
index f6f00c5cd5afbe6eae4dbd140f3bdc7af4946fae..cced8592c447b8de168c75908fe50bf2197fbfe1 100644 (file)
@@ -99,4 +99,15 @@ check_all("pdb")
 check_all("pickle")
 check_all("pipes")
 check_all("popen2")
+check_all("poplib")
+check_all("posixfile")
+check_all("posixpath")
+check_all("pprint")
+check_all("pre")
+check_all("profile")
+check_all("pstats")
+check_all("pty")
+check_all("py_compile")
+check_all("pyclbr")
+check_all("quopri")
 check_all("robotparser")