summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/pdb.py3
-rw-r--r--Lib/pickle.py3
-rw-r--r--Lib/pipes.py3
-rw-r--r--Lib/popen2.py5
-rw-r--r--Lib/test/test___all__.py4
5 files changed, 16 insertions, 2 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index d7fe54a..6e074a9 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -13,6 +13,9 @@ import repr
import os
import re
+__all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace",
+ "post_mortem", "help"]
+
def find_function(funcname, filename):
cre = re.compile(r'def\s+%s\s*[(]' % funcname)
try:
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 1ec5b49..b0c6a79 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -31,6 +31,9 @@ import marshal
import sys
import struct
+__all__ = ["PickleError", "PicklingError", "UnpicklingError", "Pickler",
+ "Unpickler", "dump", "dumps", "load", "loads"]
+
format_version = "1.3" # File format version we write
compatible_formats = ["1.0", "1.1", "1.2"] # Old format versions we can read
diff --git a/Lib/pipes.py b/Lib/pipes.py
index 77a57e8..ceb32a8 100644
--- a/Lib/pipes.py
+++ b/Lib/pipes.py
@@ -56,7 +56,7 @@ To create a new template object initialized to a given one:
t2 = t.clone()
For an example, see the function test() at the end of the file.
-"""
+""" # '
import sys
@@ -66,6 +66,7 @@ import os
import tempfile
import string
+__all__ = ["Template"]
# Conversion step kinds
diff --git a/Lib/popen2.py b/Lib/popen2.py
index e1bf363..954eb29 100644
--- a/Lib/popen2.py
+++ b/Lib/popen2.py
@@ -9,6 +9,8 @@ and popen3(cmd) which return two or three pipes to the spawned command.
import os
import sys
+__all__ = ["popen2", "popen3", "popen4"]
+
MAXFD = 256 # Max number of file descriptors (os.getdtablesize()???)
_active = []
@@ -155,7 +157,8 @@ else:
inst = Popen4(cmd, bufsize)
return inst.fromchild, inst.tochild
-
+ __all__.extend(["Popen3", "Popen4"])
+
def _test():
cmd = "cat"
teststr = "ab cd\n"
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index a3ae956..f6f00c5 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -95,4 +95,8 @@ check_all("nntplib")
check_all("ntpath")
check_all("nturl2path")
check_all("os")
+check_all("pdb")
+check_all("pickle")
+check_all("pipes")
+check_all("popen2")
check_all("robotparser")