import getopt
import tokenize
+__all__ = ["check"]
+
verbose = 0
filename_only = 0
import socket
import select
+__all__ = ["Telnet"]
+
# Tunable parameters
DEBUGLEVEL = 0
import os
+__all__ = ["mktemp", "TemporaryFile", "tempdir", "gettempprefix"]
+
# Parameters that the caller may set to override the defaults
tempdir = None
template = None
check_all("socket")
check_all("sre")
check_all("stat_cache")
+check_all("tabnanny")
+check_all("telnetlib")
+check_all("tempfile")
+check_all("toaiff")
+check_all("tokenize")
+check_all("traceback")
+check_all("tty")
+check_all("urllib")
+check_all("urlparse")
+check_all("uu")
+check_all("warnings")
+check_all("wave")
+check_all("weakref")
+check_all("webbrowser")
+check_all("xdrlib")
+check_all("zipfile")
import pipes
import sndhdr
+__all__ = ["error", "toaiff"]
+
table = {}
t = pipes.Template()
import string, re
from token import *
+import token
+__all__ = [x for x in dir(token) if x[0] != '_'] + ["COMMENT", "tokenize", "NL"]
+del token
+
COMMENT = N_TOKENS
tok_name[COMMENT] = 'COMMENT'
NL = N_TOKENS + 1
tok_name[NL] = 'NL'
-
+N_TOKENS += 2
# Changes from 1.3:
# Ignore now accepts \f as whitespace. Operator now includes '**'.
import sys
import types
+__all__ = ['extract_stack', 'extract_tb', 'format_exception',
+ 'format_exception_only', 'format_list', 'format_stack',
+ 'format_tb', 'print_exc', 'print_exception', 'print_last',
+ 'print_stack', 'print_tb', 'tb_lineno']
+
def _print(file, str='', terminator='\n'):
file.write(str+terminator)
from termios import *
+__all__ = ["setraw", "setcbreak"]
+
# Indexes for termios list.
IFLAG = 0
OFLAG = 1
import sys
import types
+__all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve",
+ "urlcleanup", "quote", "quote_plus", "unquote", "unquote_plus",
+ "urlencode"]
+
__version__ = '1.15' # XXX This version is not always updated :-(
MAXFTPCACHE = 10 # Trim the ftp cache beyond this size
UC Irvine, June 1995.
"""
+__all__ = ["urlparse", "urlunparse", "urljoin"]
+
# A classification of schemes ('' means apply by default)
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
'https', 'shttp',
import os
import sys
+__all__ = ["Error", "encode", "decode"]
+
class Error(Exception):
pass
import sys, re, types
+__all__ = ["warn", "showwarning", "formatwarning", "filterwarnings",
+ "resetwarnings"]
+
defaultaction = "default"
filters = []
onceregistry = {}
import __builtin__
+__all__ = ["open", "openfp", "Error"]
+
class Error(Exception):
pass
ProxyTypes = (ProxyType, CallableProxyType)
+__all__ = ["ref", "mapping", "proxy", "getweakrefcount", "getweakrefs",
+ "WeakKeyDictionary", "ReferenceType", "ProxyType",
+ "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
def mapping(dict=None,weakkeys=0):
if weakkeys:
import os
import sys
+__all__ = ["Error", "open", "get", "register"]
+
class Error(Exception):
pass
import struct
+__all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
+
# exceptions
class Error:
"""Exception class for this module. Use:
except:
zlib = None
+__all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",
+ "ZipInfo", "ZipFile", "PyZipFile"]
+
class BadZipfile(Exception):
pass
error = BadZipfile # The exception raised by this module