]> granicus.if.org Git - python/commitdiff
more __all__ updates
authorSkip Montanaro <skip@pobox.com>
Sat, 20 Jan 2001 23:34:12 +0000 (23:34 +0000)
committerSkip Montanaro <skip@pobox.com>
Sat, 20 Jan 2001 23:34:12 +0000 (23:34 +0000)
12 files changed:
Lib/doctest.py
Lib/dospath.py
Lib/dumbdbm.py
Lib/filecmp.py
Lib/fileinput.py
Lib/fnmatch.py
Lib/fpformat.py
Lib/ftplib.py
Lib/getopt.py
Lib/getpass.py
Lib/glob.py
Lib/test/test___all__.py

index 1b06990e0b591f267482411cf6cdad92b250d768..887833e11227a48fb24f4f4963aa75348c65a6b1 100644 (file)
@@ -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
index c4846baf693d07044a25d88f9f983f15f05656c9..ed35d5970b63a56eba7820577e56e04621e5e00a 100644 (file)
@@ -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.
index 45a2f36a5dbcd9998834525d4cb6cad9bf435fec..16a0d838f5ba97c3efdf26f10ee257139cdac725 100644 (file)
@@ -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
index ec6e1ffc3ec2c37fad04104e63fad6d9faf26d66..3018762003ab0dc4eb9b495e0c7718ed9772b434 100644 (file)
@@ -13,6 +13,8 @@ import os
 import stat
 import statcache
 
+__all__ = ["cmp","dircmp","cmpfiles"]
+
 _cache = {}
 BUFSIZE=8*1024
 
index 9bc17001d3c6f49a81f235e77b509a92aa1dc74c..794d575375ba3c5142a9767b21acf3bf35d20866 100644 (file)
@@ -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
index a4508bb312348ce7b04aec2b1638725675c85294..c40f50035dcf9f8583c2a6e56c94749f7f2ceaf3 100644 (file)
@@ -12,6 +12,8 @@ corresponding to PATTERN.  (It does not compile it.)
 
 import re
 
+__all__ = ["fnmatch","fnmatchcase","translate"]
+
 _cache = {}
 
 def fnmatch(name, pat):
index df2092f91ca9a1c2ee8f995d044b373193bf7859..7319e2ae30aff799594bffd7bf5d2681f7f3a01d 100644 (file)
@@ -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
index ebb4d159939c4f8672e37a8ac12a33f8b60c472f..a5aba0ff631665fe1a3305cdeaddd01308c6991d 100644 (file)
@@ -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
index 1bc42bd6a62ed769abe2561e9ca2159d3c54989b..82cf04d76a253ddbe1936ec3fffd11501d815682 100644 (file)
@@ -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 = ''
index 918f2edc76246c8cc4477c1f4dbfb3a5f38269d7..840f7a0ca2f8a43500a70294d3879d8b79d58951 100644 (file)
@@ -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.
 
index 2c214553d32b7d49caeebaa0d59234b83af37b36..eeb6bdd6468aeaaa0a20fdaa6850eb2a9099b5c6 100644 (file)
@@ -4,6 +4,7 @@ import os
 import fnmatch
 import re
 
+__all__ = ["glob"]
 
 def glob(pathname):
     """Return a list of paths matching a pathname pattern.
index f5e363038d8bf3112766483c56033a7cce7f8908..f811732a697f458d05db494d24320a6dfbb84155 100644 (file)
@@ -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")