Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17ab123

Browse files
author
Skip Montanaro
committed
a few more modules get __all__
1 parent bbd89b6 commit 17ab123

11 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lib/imghdr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Recognize image file formats based on their first few bytes."""
22

3+
__all__ = ["what"]
34

45
#-------------------------#
56
# Recognize image headers #

Lib/imputil.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import struct
1515
import marshal
1616

17+
__all__ = ["ImportManager","Importer","BuiltinImporter"]
18+
1719
_StringType = type('')
1820
_ModuleType = type(sys) ### doesn't work in JPython...
1921

Lib/keyword.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
python Lib/keyword.py
1111
"""
1212

13+
__all__ = ["iskeyword"]
14+
1315
kwlist = [
1416
#--start keywords--
1517
'and',

Lib/linecache.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import os
1010
from stat import *
1111

12+
__all__ = ["getline","clearcache","checkcache"]
13+
1214
def getline(filename, lineno):
1315
lines = getlines(filename)
1416
if 1 <= lineno <= len(lines):

Lib/locale.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
# If this fails, fall back on a basic 'C' locale emulation.
1919
#
2020

21+
__all__ = ["setlocale","Error","localeconv","strcoll","strxfrm",
22+
"format","str","atof","atoi","LC_CTYPE","LC_COLLATE",
23+
"LC_TIME","LC_MONETARY","LC_NUMERIC","LC_MESSAGES",
24+
"LC_ALL","CHAR_MAX"]
25+
2126
try:
2227

2328
from _locale import *

Lib/macpath.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import os
44
from stat import *
55

6+
__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
7+
"basename","dirname","commonprefix","getsize","getmtime",
8+
"getatime","islink","exists","isdir","isfile",
9+
"walk","expanduser","expandvars","normpath","abspath"]
610

711
# Normalize the case of a pathname. Dummy in Posix, but <s>.lower() here.
812

Lib/macurl2path.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import urllib
77
import os
88

9+
__all__ = ["url2pathname","pathname2url"]
10+
911
def url2pathname(pathname):
1012
"Convert /-delimited pathname to mac pathname"
1113
#

Lib/mailbox.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import rfc822
77
import os
88

9+
__all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
10+
911
class _Mailbox:
1012
def __init__(self, fp):
1113
self.fp = fp

Lib/mailcap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import string
55

6+
__all__ = ["getcaps","findmatch"]
67

78
# Part 1: top-level interface.
89

Lib/mhlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
import shutil
8383
from bisect import bisect
8484

85+
__all__ = ["MH","Error","Folder","Message"]
8586

8687
# Exported constants
8788

0 commit comments

Comments
 (0)