Skip to content

Commit 2dd4276

Browse files
author
Skip Montanaro
committed
added a few more __all__ lists
fixed typo in ihooks docstring
1 parent 26e94a8 commit 2dd4276

9 files changed

Lines changed: 26 additions & 1 deletion

File tree

‎Lib/gettext.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
import struct
4949
from errno import ENOENT
5050

51+
__all__ = ["bindtextdomain","textdomain","gettext","dgettext",
52+
"find","translation","install","Catalog"]
53+
5154
_default_localedir = os.path.join(sys.prefix, 'share', 'locale')
5255

5356

‎Lib/gopherlib.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import string
44

5+
__all__ = ["send_selector","send_query"]
6+
57
# Default selector, host and port
68
DEF_SELECTOR = '1/'
79
DEF_HOST = 'gopher.micro.umn.edu'

‎Lib/gzip.py‎

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

12+
__all__ = ["GzipFile","open"]
13+
1214
FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
1315

1416
READ, WRITE = 1, 2

‎Lib/htmlentitydefs.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""HTML character entity references."""
22

3+
__all__ = ["entitydefs"]
4+
35
entitydefs = {
46
'AElig': '\306', # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
57
'Aacute': '\301', # latin capital letter A with acute, U+00C1 ISOlat1

‎Lib/htmllib.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from sgmllib import SGMLParser
1010
from formatter import AS_IS
1111

12+
__all__ = ["HTMLParser"]
1213

1314
class HTMLParser(SGMLParser):
1415

‎Lib/httplib.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
except ImportError:
7575
from StringIO import StringIO
7676

77+
__all__ = ["HTTP"]
78+
7779
HTTP_PORT = 80
7880
HTTPS_PORT = 443
7981

‎Lib/ihooks.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class for other hooks classes.
4242
The classes defined here should be used as base classes for extended
4343
functionality along those lines.
4444
45-
If a module mporter class supports dotted names, its import_module()
45+
If a module importer class supports dotted names, its import_module()
4646
must return a different value depending on whether it is called on
4747
behalf of a "from ... import ..." statement or not. (This is caused
4848
by the way the __import__ hook is used by the Python interpreter.) It
@@ -57,6 +57,8 @@ class for other hooks classes.
5757
import sys
5858
import string
5959

60+
__all__ = ["BasicModuleLoader","Hooks","ModuleLoader","FancyModuleLoader",
61+
"BasicModuleImporter","ModuleImporter","install","uninstall"]
6062

6163
VERBOSE = 0
6264

‎Lib/imaplib.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
import binascii, re, socket, string, time, random, sys
2020

21+
__all__ = ["IMAP4","error","abort","readonly","Internaldate2tuple",
22+
"Int2AP","ParseFlags","Time2InternalDate"]
23+
2124
# Globals
2225

2326
CRLF = '\r\n'

‎Lib/test/test___all__.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,13 @@ def check_all(modname):
6767
check_all("ftplib")
6868
check_all("getopt")
6969
check_all("getpass")
70+
check_all("gettext")
7071
check_all("glob")
72+
check_all("gopher")
73+
check_all("gzip")
74+
check_all("htmlentitydefs")
75+
check_all("htmllib")
76+
check_all("httplib")
77+
check_all("ihooks")
78+
check_all("imaplib")
7179
check_all("robotparser")

0 commit comments

Comments
 (0)