]> granicus.if.org Git - python/commitdiff
added a few more __all__ lists
authorSkip Montanaro <skip@pobox.com>
Tue, 23 Jan 2001 15:35:05 +0000 (15:35 +0000)
committerSkip Montanaro <skip@pobox.com>
Tue, 23 Jan 2001 15:35:05 +0000 (15:35 +0000)
fixed typo in ihooks docstring

Lib/gettext.py
Lib/gopherlib.py
Lib/gzip.py
Lib/htmlentitydefs.py
Lib/htmllib.py
Lib/httplib.py
Lib/ihooks.py
Lib/imaplib.py
Lib/test/test___all__.py

index 7ef425935d8c880c3179a72ecd186170ec36ea5f..638d4ae7a31c327b10abd27870f16c386546d0c8 100644 (file)
@@ -48,6 +48,9 @@ import sys
 import struct
 from errno import ENOENT
 
+__all__ = ["bindtextdomain","textdomain","gettext","dgettext",
+           "find","translation","install","Catalog"]
+
 _default_localedir = os.path.join(sys.prefix, 'share', 'locale')
 
 
index 6965fbdb8a94d16088312a0bdc20f04cf05ac873..9514832acf2d606a89cbcae9abc5df17999dde30 100644 (file)
@@ -2,6 +2,8 @@
 
 import string
 
+__all__ = ["send_selector","send_query"]
+
 # Default selector, host and port
 DEF_SELECTOR = '1/'
 DEF_HOST     = 'gopher.micro.umn.edu'
index 2ed3d9c71e6a356984667ee0b6518ba187d27a0e..53e6e9c3c7c498882367f8946666e97d26cd07be 100644 (file)
@@ -9,6 +9,8 @@ import string, struct, sys, time
 import zlib
 import __builtin__
 
+__all__ = ["GzipFile","open"]
+
 FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
 
 READ, WRITE = 1, 2
index b20a07c70118901a3b03e40ed51272540b6ddc73..dfbf55e0099974e329cc06da64efb18564a3baf0 100644 (file)
@@ -1,5 +1,7 @@
 """HTML character entity references."""
 
+__all__ = ["entitydefs"]
+
 entitydefs = {
     'AElig':    '\306',         # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
     'Aacute':   '\301',         # latin capital letter A with acute, U+00C1 ISOlat1
index cae9ae5eaf787eb067c9d08a4c15ca0bf12294d6..d3e8f88fecb70eb2869311afaa62548485d4e0e4 100644 (file)
@@ -9,6 +9,7 @@ import string
 from sgmllib import SGMLParser
 from formatter import AS_IS
 
+__all__ = ["HTMLParser"]
 
 class HTMLParser(SGMLParser):
 
index 27a9e0110c6b19fb1de697122eeaf3ff5edbf0c7..4750685198650bc1a7b1a3aefa9e56270ef8160c 100644 (file)
@@ -74,6 +74,8 @@ try:
 except ImportError:
     from StringIO import StringIO
 
+__all__ = ["HTTP"]
+
 HTTP_PORT = 80
 HTTPS_PORT = 443
 
index 62760cbbe49c0b9dd31435aaad60351b228dcd33..9e1e8842a35353e78d399db10eabf251419a5998 100644 (file)
@@ -42,7 +42,7 @@ instantiated).
 The classes defined here should be used as base classes for extended
 functionality along those lines.
 
-If a module mporter class supports dotted names, its import_module()
+If a module importer class supports dotted names, its import_module()
 must return a different value depending on whether it is called on
 behalf of a "from ... import ..." statement or not.  (This is caused
 by the way the __import__ hook is used by the Python interpreter.)  It
@@ -57,6 +57,8 @@ import os
 import sys
 import string
 
+__all__ = ["BasicModuleLoader","Hooks","ModuleLoader","FancyModuleLoader",
+           "BasicModuleImporter","ModuleImporter","install","uninstall"]
 
 VERBOSE = 0
 
index 954ecf65d10553255e6ebf83c89d546f1d9eee26..229e5c6edcd6bb801175f6f197ef69d060736681 100644 (file)
@@ -18,6 +18,9 @@ __version__ = "2.39"
 
 import binascii, re, socket, string, time, random, sys
 
+__all__ = ["IMAP4","error","abort","readonly","Internaldate2tuple",
+           "Int2AP","ParseFlags","Time2InternalDate"]
+
 #       Globals
 
 CRLF = '\r\n'
index 0b684ec46ae392e8801f80addfb90aab2ff7e8f9..0027b02e6714702674485d9441b76ca9cf8ca4e6 100644 (file)
@@ -67,5 +67,13 @@ check_all("fpformat")
 check_all("ftplib")
 check_all("getopt")
 check_all("getpass")
+check_all("gettext")
 check_all("glob")
+check_all("gopher")
+check_all("gzip")
+check_all("htmlentitydefs")
+check_all("htmllib")
+check_all("httplib")
+check_all("ihooks")
+check_all("imaplib")
 check_all("robotparser")