]> granicus.if.org Git - python/commitdiff
removed __all__ from several modules
authorSkip Montanaro <skip@pobox.com>
Sun, 18 Feb 2001 03:30:53 +0000 (03:30 +0000)
committerSkip Montanaro <skip@pobox.com>
Sun, 18 Feb 2001 03:30:53 +0000 (03:30 +0000)
16 files changed:
Lib/Queue.py
Lib/UserDict.py
Lib/UserList.py
Lib/anydbm.py
Lib/bisect.py
Lib/chunk.py
Lib/dumbdbm.py
Lib/htmlentitydefs.py
Lib/mutex.py
Lib/nturl2path.py
Lib/posixfile.py
Lib/regex_syntax.py
Lib/stat.py
Lib/statvfs.py
Lib/string.py
Lib/test/test___all__.py

index 050a9660405ca308f7b4561b9b184c0c4cff2a4c..0e6bbf055a469a4e2013c60219e36bd7ac5e5d2b 100644 (file)
@@ -1,7 +1,5 @@
 """A multi-producer, multi-consumer queue."""
 
-__all__ = ["Queue","Empty","Full"]
-
 class Empty(Exception):
     "Exception raised by Queue.get(block=0)/get_nowait()."
     pass
index 38f0d2631bd00d3985c1ef170d92cfc467d67ac2..b642db73b57e480c55dbd4af7474d0983d77e126 100644 (file)
@@ -1,7 +1,5 @@
 """A more or less complete user-defined wrapper around dictionary objects."""
 
-__all__ = ["UserDict"]
-
 class UserDict:
     def __init__(self, dict=None):
         self.data = {}
index 6867332b70e78b1cc29bd47255a66b619ec70a6f..ee2658939ff11e57f2a6ba6a8609c3341924280f 100644 (file)
@@ -1,7 +1,5 @@
 """A more or less complete user-defined wrapper around list objects."""
 
-__all__ = ["UserList"]
-
 class UserList:
     def __init__(self, initlist=None):
         self.data = []
index 9352fbff561fdb970749b723efc1e38dcfcd7b9c..ba6fa7b54aa0a5154302fa188b0d80a4381fdfdf 100644 (file)
@@ -42,8 +42,6 @@ only if it doesn't exist; and 'n' always creates a new database.
 
 """
 
-__all__ = ["error","open"]
-
 try:
     class error(Exception):
         pass
index f521babc0e47334a952db6fab4d83433c5678a7d..d311337271e56521a34ea2f6f53006c2220ee62f 100644 (file)
@@ -1,7 +1,5 @@
 """Bisection algorithms."""
 
-__all__ = ["bisect_right","insort_right","bisect_left","insort_left"]
-
 def insort_right(a, x, lo=0, hi=None):
     """Insert item x in list a, and keep it sorted assuming a is sorted.
 
index 96460c047110c562fe20d45e5e30f67d8f27436e..0a93cd3137703888e23242b9e5a16225d12ff235 100644 (file)
@@ -48,8 +48,6 @@ specifies whether or not chunks are aligned on 2-byte boundaries.  The
 default is 1, i.e. aligned.
 """
 
-__all__ = ["Chunk"]
-
 class Chunk:
     def __init__(self, file, align = 1, bigendian = 1, inclheader = 0):
         import struct
index 16a0d838f5ba97c3efdf26f10ee257139cdac725..45a2f36a5dbcd9998834525d4cb6cad9bf435fec 100644 (file)
@@ -24,8 +24,6 @@ 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 dfbf55e0099974e329cc06da64efb18564a3baf0..b20a07c70118901a3b03e40ed51272540b6ddc73 100644 (file)
@@ -1,7 +1,5 @@
 """HTML character entity references."""
 
-__all__ = ["entitydefs"]
-
 entitydefs = {
     'AElig':    '\306',         # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
     'Aacute':   '\301',         # latin capital letter A with acute, U+00C1 ISOlat1
index 33baea14223a45aec1dce0f7cfbc85dc45b0c108..2348a2e0041d753dfbfa37f8e4c195c99ddec1f9 100644 (file)
@@ -12,8 +12,6 @@ Of course, no multi-threading is implied -- hence the funny interface
 for lock, where a function is called once the lock is aquired.
 """
 
-__all__ = ["mutex"]
-
 class mutex:
     def __init__(self):
         """Create a new mutex -- initially unlocked."""
index f7b0fbe9a8c0a03dc71daad3e0f3114fe3a1ec51..fc5357ecd775be2e27fc40a08327241d95f062f3 100644 (file)
@@ -1,7 +1,5 @@
 """Convert a NT pathname to a file URL and vice versa."""
 
-__all__ = ["url2pathname"]
-
 def url2pathname(url):
     r"""Convert a URL to a DOS path.
 
index da374ad9a998d26046b52d1d0ef873b9adf1e76f..58c4b4f5f890c37c55c83c63011501d8d8490e03 100644 (file)
@@ -53,8 +53,6 @@ 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 421ffd9b9f339c2814762f4da39a2dfd84894423..b0a0dbf20c45f0dc2f8014d97430ebb4c9756471 100644 (file)
@@ -51,9 +51,3 @@ RE_SYNTAX_GREP = (RE_BK_PLUS_QM | RE_NEWLINE_OR)
 RE_SYNTAX_EMACS = 0
 
 # (Python's obsolete "regexp" module used a syntax similar to awk.)
-
-__all__ = locals().keys()
-for _i in range(len(__all__)-1,-1,-1):
-    if __all__[_i][0] == "_":
-        del __all__[_i]
-del _i
index f0ffabed431ae8ffbc4bf6e4e3bc1c68b40e2e4e..70750d8b1ae909039c1e95d37ccab60b2f0096b0 100644 (file)
@@ -84,9 +84,3 @@ S_IRWXO = 00007
 S_IROTH = 00004
 S_IWOTH = 00002
 S_IXOTH = 00001
-
-__all__ = locals().keys()
-for _i in range(len(__all__)-1,-1,-1):
-    if __all__[_i][0] == "_":
-        del __all__[_i]
-del _i
index b3d8e971b657f2e5d1a6ce90c7548acd8ec3d085..06a323fa63c81b74c8db65221fa12c698e4c2818 100644 (file)
@@ -13,9 +13,3 @@ F_FFREE   = 6           # Total number of free file nodes
 F_FAVAIL  = 7           # Free nodes available to non-superuser
 F_FLAG    = 8           # Flags (see your local statvfs man page)
 F_NAMEMAX = 9           # Maximum file name length
-
-__all__ = locals().keys()
-for _i in range(len(__all__)-1,-1,-1):
-    if __all__[_i][0] == "_":
-        del __all__[_i]
-del _i
index 45fe97740902eebcd4986c5b1126402ee5718131..913d980bae6df9425f1c1cda80fd5de6dfbeb18f 100644 (file)
@@ -379,9 +379,3 @@ try:
     letters = lowercase + uppercase
 except ImportError:
     pass                                          # Use the original versions
-
-__all__ = locals().keys()
-for _i in range(len(__all__)-1,-1,-1):
-    if __all__[_i][0] == "_":
-        del __all__[_i]
-del _i
index b2ea498eb4cab4a23b7b9e84e9eb4a34e43af691..bd417e73165eaf16878ecb9781e8346973ad5517 100644 (file)
@@ -39,29 +39,22 @@ def check_all(modname):
     verify(keys==all, "%s != %s" % (keys, all))
 
 check_all("BaseHTTPServer")
-check_all("Bastion")
 check_all("CGIHTTPServer")
 check_all("ConfigParser")
 check_all("Cookie")
 check_all("MimeWriter")
-check_all("Queue")
 check_all("SimpleHTTPServer")
 check_all("SocketServer")
 check_all("StringIO")
-check_all("UserDict")
-check_all("UserList")
 check_all("UserString")
 check_all("aifc")
-check_all("anydbm")
 check_all("atexit")
 check_all("audiodev")
 check_all("base64")
 check_all("bdb")
 check_all("binhex")
-check_all("bisect")
 check_all("calendar")
 check_all("cgi")
-check_all("chunk")
 check_all("cmd")
 check_all("code")
 check_all("codecs")
@@ -76,7 +69,6 @@ check_all("dircache")
 check_all("dis")
 check_all("doctest")
 check_all("dospath")
-check_all("dumbdbm")
 check_all("filecmp")
 check_all("fileinput")
 check_all("fnmatch")
@@ -88,7 +80,6 @@ check_all("gettext")
 check_all("glob")
 check_all("gopherlib")
 check_all("gzip")
-check_all("htmlentitydefs")
 check_all("htmllib")
 check_all("httplib")
 check_all("ihooks")
@@ -106,18 +97,15 @@ check_all("mimetools")
 check_all("mimetypes")
 check_all("mimify")
 check_all("multifile")
-check_all("mutex")
 check_all("netrc")
 check_all("nntplib")
 check_all("ntpath")
-check_all("nturl2path")
 check_all("os")
 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")
@@ -130,7 +118,6 @@ check_all("quopri")
 check_all("random")
 check_all("re")
 check_all("reconvert")
-check_all("regex_syntax")
 check_all("regsub")
 check_all("repr")
 check_all("rexec")
@@ -148,9 +135,5 @@ check_all("sndhdr")
 check_all("socket")
 check_all("sre")
 check_all("sre_compile")
-check_all("sre_constants")
 check_all("sre_parse")
-check_all("stat")
 check_all("stat_cache")
-check_all("statvfs")
-check_all("string")