Kaydet (Commit) 17ab123c authored tarafından Skip Montanaro's avatar Skip Montanaro

a few more modules get __all__

üst bbd89b66
"""Recognize image file formats based on their first few bytes."""
__all__ = ["what"]
#-------------------------#
# Recognize image headers #
......
......@@ -14,6 +14,8 @@ import __builtin__
import struct
import marshal
__all__ = ["ImportManager","Importer","BuiltinImporter"]
_StringType = type('')
_ModuleType = type(sys) ### doesn't work in JPython...
......
......@@ -10,6 +10,8 @@ the python source tree after building the interpreter and run:
python Lib/keyword.py
"""
__all__ = ["iskeyword"]
kwlist = [
#--start keywords--
'and',
......
......@@ -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):
......
......@@ -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 *
......
......@@ -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.
......
......@@ -6,6 +6,8 @@ import string
import urllib
import os
__all__ = ["url2pathname","pathname2url"]
def url2pathname(pathname):
"Convert /-delimited pathname to mac pathname"
#
......
......@@ -6,6 +6,8 @@
import rfc822
import os
__all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
class _Mailbox:
def __init__(self, fp):
self.fp = fp
......
......@@ -3,6 +3,7 @@
import os
import string
__all__ = ["getcaps","findmatch"]
# Part 1: top-level interface.
......
......@@ -82,6 +82,7 @@ import multifile
import shutil
from bisect import bisect
__all__ = ["MH","Error","Folder","Message"]
# Exported constants
......
......@@ -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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment