_isComment = re.compile(r"\s*#").match
del re
+__all__ = []
+
# Extract interactive examples from a string. Return a list of triples,
# (source, outcome, lineno). "source" is the source code, and ends
# with a newline iff the source spans more than one line. "outcome" is
import os
import stat
+__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
+ "basename","dirname","commonprefix","getsize","getmtime",
+ "getatime","islink","exists","isdir","isfile","ismount",
+ "walk","expanduser","expandvars","normpath","abspath"]
def normcase(s):
"""Normalize the case of a pathname.
_os = __import__('os')
import __builtin__
+__all__ = ["open"]
+
_open = __builtin__.open
_BLOCKSIZE = 512
import stat
import statcache
+__all__ = ["cmp","dircmp","cmpfiles"]
+
_cache = {}
BUFSIZE=8*1024
import sys, os, stat
+__all__ = ["input","close","nextfile","filename","lineno","filelineno",
+ "isfirstline","isstdin","FileInput"]
+
_state = None
DEFAULT_BUFSIZE = 8*1024
import re
+__all__ = ["fnmatch","fnmatchcase","translate"]
+
_cache = {}
def fnmatch(name, pat):
import re
+__all__ = ["fix","sci","NotANumber"]
+
# Compiled regular expression to "decode" a number
decoder = re.compile(r'^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$')
# \0 the whole thing
except ImportError:
import socket
+__all__ = ["FTP","Netrc"]
# Magic number from <socket.h>
MSG_OOB = 0x1 # Process data out of band
# Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
# to class-based exceptions.
+__all__ = ["GetoptError","error","getopt"]
+
class GetoptError(Exception):
opt = ''
msg = ''
import sys
+__all__ = ["getpass","getuser"]
+
def unix_getpass(prompt='Password: '):
"""Prompt for a password, with echo turned off.
import fnmatch
import re
+__all__ = ["glob"]
def glob(pathname):
"""Return a list of paths matching a pathname pattern.
check_all("dbhash")
check_all("dircache")
check_all("dis")
+check_all("doctest")
+check_all("dospath")
+check_all("dumbdbm")
+check_all("filecmp")
+check_all("fileinput")
+check_all("fnmatch")
+check_all("fpformat")
+check_all("ftplib")
+check_all("getopt")
+check_all("getpass")
+check_all("glob")
check_all("robotparser")