]> granicus.if.org Git - python/commitdiff
a few more modules get __all__
authorSkip Montanaro <skip@pobox.com>
Wed, 24 Jan 2001 06:27:27 +0000 (06:27 +0000)
committerSkip Montanaro <skip@pobox.com>
Wed, 24 Jan 2001 06:27:27 +0000 (06:27 +0000)
Lib/imghdr.py
Lib/imputil.py
Lib/keyword.py
Lib/linecache.py
Lib/locale.py
Lib/macpath.py
Lib/macurl2path.py
Lib/mailbox.py
Lib/mailcap.py
Lib/mhlib.py
Lib/test/test___all__.py

index 97687b09944737b8dc8d2e50d96a67f966da567a..dc5fb2298014b3593f93cdd8417fbc35a728523b 100644 (file)
@@ -1,5 +1,6 @@
 """Recognize image file formats based on their first few bytes."""
 
+__all__ = ["what"]
 
 #-------------------------#
 # Recognize image headers #
index ca359e95d74162a97d290e773e40aba7a5e272f1..3185d7d94cc1c82b33f345edb15e64953a4e1b9d 100644 (file)
@@ -14,6 +14,8 @@ import __builtin__
 import struct
 import marshal
 
+__all__ = ["ImportManager","Importer","BuiltinImporter"]
+
 _StringType = type('')
 _ModuleType = type(sys)         ### doesn't work in JPython...
 
index 0c3dec2acafaebd0dbbfdd2ca9252c8b9a3636c3..003e6521e5b64bbaea27887e2c63f5939745c685 100755 (executable)
@@ -10,6 +10,8 @@ the python source tree after building the interpreter and run:
     python Lib/keyword.py
 """
 
+__all__ = ["iskeyword"]
+
 kwlist = [
 #--start keywords--
         'and',
index c39f8db5954d0d022119f9edc0a7dc9f3d57b17a..d6fc28cae301823c037af35bb3a3b26ab3b42697 100644 (file)
@@ -9,6 +9,8 @@ import sys
 import os
 from stat import *
 
+__all__ = ["getline","clearcache","checkcache"]
+
 def getline(filename, lineno):
     lines = getlines(filename)
     if 1 <= lineno <= len(lines):
index ac272e769efbcb18045ccc4b98a82129d94a1586..24e4c0e437cd2f6c06158176dd4a37e4e7d7affd 100644 (file)
@@ -18,6 +18,11 @@ import string, sys
 # If this fails, fall back on a basic 'C' locale emulation.
 #
 
+__all__ = ["setlocale","Error","localeconv","strcoll","strxfrm",
+           "format","str","atof","atoi","LC_CTYPE","LC_COLLATE",
+           "LC_TIME","LC_MONETARY","LC_NUMERIC","LC_MESSAGES",
+           "LC_ALL","CHAR_MAX"]
+
 try:
 
     from _locale import *
index bf2660f4f1dfe8944769f48d98c1bdf33213fb46..197e50f07569c00cd57befc7576119465ad92220 100644 (file)
@@ -3,6 +3,10 @@
 import os
 from stat import *
 
+__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
+           "basename","dirname","commonprefix","getsize","getmtime",
+           "getatime","islink","exists","isdir","isfile",
+           "walk","expanduser","expandvars","normpath","abspath"]
 
 # Normalize the case of a pathname.  Dummy in Posix, but <s>.lower() here.
 
index aab085ece1b05cfc2f73bf0bae520ca5dac199c6..a8be19884ce2dd8143835abe91b79b6b9825510d 100644 (file)
@@ -6,6 +6,8 @@ import string
 import urllib
 import os
 
+__all__ = ["url2pathname","pathname2url"]
+
 def url2pathname(pathname):
     "Convert /-delimited pathname to mac pathname"
     #
index 53b2c19f61375b168a90691fdd2c419cf33a285d..a5659486cedfa0a6943748374ef70681b7a9a5ff 100755 (executable)
@@ -6,6 +6,8 @@
 import rfc822
 import os
 
+__all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
+
 class _Mailbox:
     def __init__(self, fp):
         self.fp = fp
index 2c3d07e25e660ad6e434c55d79c7f3a641ce2e02..d0cf0b933345cd07f32281f69d52fcea68adb6cf 100644 (file)
@@ -3,6 +3,7 @@
 import os
 import string
 
+__all__ = ["getcaps","findmatch"]
 
 # Part 1: top-level interface.
 
index f5ece05e342ca449b187415b75a8801c92174137..dbfa9e1bf37a04f7ab50c4ab4684fa7b4a5e2795 100644 (file)
@@ -82,6 +82,7 @@ import multifile
 import shutil
 from bisect import bisect
 
+__all__ = ["MH","Error","Folder","Message"]
 
 # Exported constants
 
index 497a5cfad42e5c75f92cbc102a275d9c0c8b3f0f..079f98c81177a74c53facda79e97e8c86496c7fe 100644 (file)
@@ -76,4 +76,13 @@ check_all("htmllib")
 check_all("httplib")
 check_all("ihooks")
 check_all("imaplib")
+check_all("imghdr")
+check_all("imputil")
+check_all("keyword")
+check_all("linecache")
+check_all("locale")
+check_all("macpath")
+check_all("macurl2path")
+check_all("mailbox")
+check_all("mhlib")
 check_all("robotparser")