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:
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
t2 = t.clone()
For an example, see the function test() at the end of the file.
-"""
+""" # '
import sys
import tempfile
import string
+__all__ = ["Template"]
# Conversion step kinds
import os
import sys
+__all__ = ["popen2", "popen3", "popen4"]
+
MAXFD = 256 # Max number of file descriptors (os.getdtablesize()???)
_active = []
inst = Popen4(cmd, bufsize)
return inst.fromchild, inst.tochild
-
+ __all__.extend(["Popen3", "Popen4"])
+
def _test():
cmd = "cat"
teststr = "ab cd\n"
check_all("ntpath")
check_all("nturl2path")
check_all("os")
+check_all("pdb")
+check_all("pickle")
+check_all("pipes")
+check_all("popen2")
check_all("robotparser")