summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2001-01-20 23:34:12 (GMT)
committerSkip Montanaro <skip@pobox.com>2001-01-20 23:34:12 (GMT)
commiteccd02a40d0921fc2953213e71da8a3a79d00e17 (patch)
tree7f5a2cb83402b600e73e3cdbb71f7181aaa96138
parente78b92a062153ace94989e79d36e04e0997d1710 (diff)
downloadcpython-eccd02a40d0921fc2953213e71da8a3a79d00e17.zip
cpython-eccd02a40d0921fc2953213e71da8a3a79d00e17.tar.gz
cpython-eccd02a40d0921fc2953213e71da8a3a79d00e17.tar.bz2
more __all__ updates
-rw-r--r--Lib/doctest.py2
-rw-r--r--Lib/dospath.py4
-rw-r--r--Lib/dumbdbm.py2
-rw-r--r--Lib/filecmp.py2
-rw-r--r--Lib/fileinput.py3
-rw-r--r--Lib/fnmatch.py2
-rw-r--r--Lib/fpformat.py2
-rw-r--r--Lib/ftplib.py1
-rw-r--r--Lib/getopt.py2
-rw-r--r--Lib/getpass.py2
-rw-r--r--Lib/glob.py1
-rw-r--r--Lib/test/test___all__.py11
12 files changed, 34 insertions, 0 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 1b06990..887833e 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -371,6 +371,8 @@ _isEmpty = re.compile(r"\s*$").match
_isComment = re.compile(r"\s*#").match
del re
+__all__ = []
+
# Extract interactive examples from a string. Return a list of triples,
# (source, outcome, lineno). "source" is the source code, and ends
# with a newline iff the source spans more than one line. "outcome" is
diff --git a/Lib/dospath.py b/Lib/dospath.py
index c4846ba..ed35d59 100644
--- a/Lib/dospath.py
+++ b/Lib/dospath.py
@@ -3,6 +3,10 @@
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"]
def normcase(s):
"""Normalize the case of a pathname.
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 45a2f36..16a0d83 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -24,6 +24,8 @@ is read when the database is opened, and some updates rewrite the whole index)
_os = __import__('os')
import __builtin__
+__all__ = ["open"]
+
_open = __builtin__.open
_BLOCKSIZE = 512
diff --git a/Lib/filecmp.py b/Lib/filecmp.py
index ec6e1ff..3018762 100644
--- a/Lib/filecmp.py
+++ b/Lib/filecmp.py
@@ -13,6 +13,8 @@ import os
import stat
import statcache
+__all__ = ["cmp","dircmp","cmpfiles"]
+
_cache = {}
BUFSIZE=8*1024
diff --git a/Lib/fileinput.py b/Lib/fileinput.py
index 9bc1700..794d575 100644
--- a/Lib/fileinput.py
+++ b/Lib/fileinput.py
@@ -81,6 +81,9 @@ XXX Possible additions:
import sys, os, stat
+__all__ = ["input","close","nextfile","filename","lineno","filelineno",
+ "isfirstline","isstdin","FileInput"]
+
_state = None
DEFAULT_BUFSIZE = 8*1024
diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py
index a4508bb..c40f500 100644
--- a/Lib/fnmatch.py
+++ b/Lib/fnmatch.py
@@ -12,6 +12,8 @@ corresponding to PATTERN. (It does not compile it.)
import re
+__all__ = ["fnmatch","fnmatchcase","translate"]
+
_cache = {}
def fnmatch(name, pat):
diff --git a/Lib/fpformat.py b/Lib/fpformat.py
index df2092f..7319e2a 100644
--- a/Lib/fpformat.py
+++ b/Lib/fpformat.py
@@ -13,6 +13,8 @@ digits_behind: number of digits behind the decimal point
import re
+__all__ = ["fix","sci","NotANumber"]
+
# Compiled regular expression to "decode" a number
decoder = re.compile(r'^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$')
# \0 the whole thing
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index ebb4d15..a5aba0f 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -45,6 +45,7 @@ try:
except ImportError:
import socket
+__all__ = ["FTP","Netrc"]
# Magic number from <socket.h>
MSG_OOB = 0x1 # Process data out of band
diff --git a/Lib/getopt.py b/Lib/getopt.py
index 1bc42bd..82cf04d 100644
--- a/Lib/getopt.py
+++ b/Lib/getopt.py
@@ -17,6 +17,8 @@ option involved with the exception.
# Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
# to class-based exceptions.
+__all__ = ["GetoptError","error","getopt"]
+
class GetoptError(Exception):
opt = ''
msg = ''
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 918f2ed..840f7a0 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -13,6 +13,8 @@ On the Mac EasyDialogs.AskPassword is used, if available.
import sys
+__all__ = ["getpass","getuser"]
+
def unix_getpass(prompt='Password: '):
"""Prompt for a password, with echo turned off.
diff --git a/Lib/glob.py b/Lib/glob.py
index 2c21455..eeb6bdd 100644
--- a/Lib/glob.py
+++ b/Lib/glob.py
@@ -4,6 +4,7 @@ import os
import fnmatch
import re
+__all__ = ["glob"]
def glob(pathname):
"""Return a list of paths matching a pathname pattern.
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index f5e3630..f811732 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -52,4 +52,15 @@ check_all("copy_reg")
check_all("dbhash")
check_all("dircache")
check_all("dis")
+check_all("doctest")
+check_all("dospath")
+check_all("dumbdbm")
+check_all("filecmp")
+check_all("fileinput")
+check_all("fnmatch")
+check_all("fpformat")
+check_all("ftplib")
+check_all("getopt")
+check_all("getpass")
+check_all("glob")
check_all("robotparser")