a few more modules get __all__
This commit is contained in:
parent
bbd89b66b1
commit
17ab123cf1
@ -1,5 +1,6 @@
|
|||||||
"""Recognize image file formats based on their first few bytes."""
|
"""Recognize image file formats based on their first few bytes."""
|
||||||
|
|
||||||
|
__all__ = ["what"]
|
||||||
|
|
||||||
#-------------------------#
|
#-------------------------#
|
||||||
# Recognize image headers #
|
# Recognize image headers #
|
||||||
|
@ -14,6 +14,8 @@ import __builtin__
|
|||||||
import struct
|
import struct
|
||||||
import marshal
|
import marshal
|
||||||
|
|
||||||
|
__all__ = ["ImportManager","Importer","BuiltinImporter"]
|
||||||
|
|
||||||
_StringType = type('')
|
_StringType = type('')
|
||||||
_ModuleType = type(sys) ### doesn't work in JPython...
|
_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
|
python Lib/keyword.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__all__ = ["iskeyword"]
|
||||||
|
|
||||||
kwlist = [
|
kwlist = [
|
||||||
#--start keywords--
|
#--start keywords--
|
||||||
'and',
|
'and',
|
||||||
|
@ -9,6 +9,8 @@ import sys
|
|||||||
import os
|
import os
|
||||||
from stat import *
|
from stat import *
|
||||||
|
|
||||||
|
__all__ = ["getline","clearcache","checkcache"]
|
||||||
|
|
||||||
def getline(filename, lineno):
|
def getline(filename, lineno):
|
||||||
lines = getlines(filename)
|
lines = getlines(filename)
|
||||||
if 1 <= lineno <= len(lines):
|
if 1 <= lineno <= len(lines):
|
||||||
|
@ -18,6 +18,11 @@ import string, sys
|
|||||||
# If this fails, fall back on a basic 'C' locale emulation.
|
# 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:
|
try:
|
||||||
|
|
||||||
from _locale import *
|
from _locale import *
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
import os
|
import os
|
||||||
from stat import *
|
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.
|
# Normalize the case of a pathname. Dummy in Posix, but <s>.lower() here.
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@ import string
|
|||||||
import urllib
|
import urllib
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
__all__ = ["url2pathname","pathname2url"]
|
||||||
|
|
||||||
def url2pathname(pathname):
|
def url2pathname(pathname):
|
||||||
"Convert /-delimited pathname to mac pathname"
|
"Convert /-delimited pathname to mac pathname"
|
||||||
#
|
#
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
import rfc822
|
import rfc822
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
__all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
|
||||||
|
|
||||||
class _Mailbox:
|
class _Mailbox:
|
||||||
def __init__(self, fp):
|
def __init__(self, fp):
|
||||||
self.fp = fp
|
self.fp = fp
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import os
|
import os
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
__all__ = ["getcaps","findmatch"]
|
||||||
|
|
||||||
# Part 1: top-level interface.
|
# Part 1: top-level interface.
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ import multifile
|
|||||||
import shutil
|
import shutil
|
||||||
from bisect import bisect
|
from bisect import bisect
|
||||||
|
|
||||||
|
__all__ = ["MH","Error","Folder","Message"]
|
||||||
|
|
||||||
# Exported constants
|
# Exported constants
|
||||||
|
|
||||||
|
@ -76,4 +76,13 @@ check_all("htmllib")
|
|||||||
check_all("httplib")
|
check_all("httplib")
|
||||||
check_all("ihooks")
|
check_all("ihooks")
|
||||||
check_all("imaplib")
|
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")
|
check_all("robotparser")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user