a few more modules get __all__

This commit is contained in:
Skip Montanaro 2001-01-24 06:27:27 +00:00
parent bbd89b66b1
commit 17ab123cf1
11 changed files with 31 additions and 0 deletions

View File

@ -1,5 +1,6 @@
"""Recognize image file formats based on their first few bytes."""
__all__ = ["what"]
#-------------------------#
# Recognize image headers #

View 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...

View File

@ -10,6 +10,8 @@ the python source tree after building the interpreter and run:
python Lib/keyword.py
"""
__all__ = ["iskeyword"]
kwlist = [
#--start keywords--
'and',

View 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):

View 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 *

View 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.

View File

@ -6,6 +6,8 @@ import string
import urllib
import os
__all__ = ["url2pathname","pathname2url"]
def url2pathname(pathname):
"Convert /-delimited pathname to mac pathname"
#

View File

@ -6,6 +6,8 @@
import rfc822
import os
__all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
class _Mailbox:
def __init__(self, fp):
self.fp = fp

View File

@ -3,6 +3,7 @@
import os
import string
__all__ = ["getcaps","findmatch"]
# Part 1: top-level interface.

View File

@ -82,6 +82,7 @@ import multifile
import shutil
from bisect import bisect
__all__ = ["MH","Error","Folder","Message"]
# Exported constants

View 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")