Module ImportFrom alias Import alias ImportFrom alias Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Str TupleLoad Str Str TupleLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return UnaryOpNot BoolOpOr CompareIn NameLoad AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad orelse Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body While UnaryOpNot Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr While UnaryOpNot Call AttributeLoad NameLoad attr body If BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Break orelse Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr attr Str body Assign NameStore Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr Str If UnaryOpNot Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Index Num attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If CompareIn Str Call NameLoad body Delete NameDel If AttributeLoad NameLoad attr body If Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If NameLoad body If CompareNotIn Str Call NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body If CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Dict Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str ListLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body AugAssignAdd NameStore SubscriptLoad NameLoad Index Str AugAssignAdd NameStore SubscriptLoad NameLoad Index Str AugAssignAdd NameStore SubscriptLoad NameLoad Index Str AugAssignAdd NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num orelse If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A glob glob N/A os os listdir N/A os.path N/A re tempfile mktemp _escapeRegexChars N/A N/A txt escapeRE N/A N/A N/A re compile ([\$\^\*\+\.\?\{\}\[\]\(\)\|\\]) N/A N/A N/A N/A escapeRE sub \\\1 txt N/A findFiles N/A N/A N/A args kw N/A N/A Recursively find all the files matching a glob pattern.

    This function is a wrapper around the FileFinder class.  See its docstring
    for details about the accepted arguments, etc. N/A N/A N/A N/A FileFinder args kw files N/A replaceStrInFiles N/A N/A files theStr repl N/A N/A N/A Replace all instances of 'theStr' with 'repl' for each file in the 'files'
    list. Returns a dictionary with data about the matches found.

    This is like string.replace() on a multi-file basis.

    This function is a wrapper around the FindAndReplace class. See its
    docstring for more details. N/A pattern N/A _escapeRegexChars theStr N/A N/A N/A N/A FindAndReplace files pattern repl results N/A replaceRegexInFiles N/A N/A files pattern repl N/A N/A N/A Replace all instances of regex 'pattern' with 'repl' for each file in the
    'files' list. Returns a dictionary with data about the matches found.

    This is like re.sub on a multi-file basis.

    This function is a wrapper around the FindAndReplace class. See its
    docstring for more details. N/A N/A N/A N/A FindAndReplace files pattern repl results N/A FileFinder N/A N/A N/A Traverses a directory tree and finds all files in it that match one of
    the specified glob patterns. __init__ N/A N/A self rootPath globPatterns ignoreBasenames ignoreDirs N/A N/A * N/A CVS .svn N/A N/A N/A N/A self _rootPath rootPath N/A N/A self _globPatterns globPatterns N/A N/A self _ignoreBasenames ignoreBasenames N/A N/A self _ignoreDirs ignoreDirs N/A N/A self _files N/A N/A N/A N/A self walkDirTree rootPath N/A walkDirTree N/A N/A self dir listdir isdir join N/A . N/A os listdir N/A N/A os path isdir N/A N/A os path join N/A N/A Recursively walk through a directory tree and find matching files. N/A processDir N/A self processDir N/A filterDir N/A self filterDir N/A pendingDirs N/A dir N/A addDir N/A pendingDirs append N/A getDir N/A pendingDirs pop N/A pendingDirs N/A N/A dir N/A getDir N/A N/A processDir dir N/A baseName N/A listdir dir N/A N/A fullPath N/A join dir baseName N/A N/A isdir fullPath N/A N/A N/A filterDir baseName fullPath N/A N/A N/A addDir fullPath N/A filterDir N/A N/A self baseName fullPath N/A N/A N/A A hook for filtering out certain dirs.  N/A N/A N/A N/A baseName N/A self _ignoreBasenames N/A fullPath N/A self _ignoreDirs N/A processDir N/A N/A self dir glob N/A glob N/A N/A extend N/A N/A self _files extend N/A pattern N/A self _globPatterns N/A N/A N/A extend N/A glob N/A N/A N/A os path join dir pattern N/A files N/A N/A self N/A N/A N/A N/A self _files N/A N/A _GenSubberFunc N/A N/A N/A Converts a 'sub' string in the form that one feeds to re.sub (backrefs,
    groups, etc.) into a function that can be used to do the substitutions in
    the FindAndReplace class. N/A backrefRE N/A N/A re compile \\([1-9][0-9]*) N/A groupRE N/A N/A re compile \\g<([a-zA-Z_][a-zA-Z_]*)> __init__ N/A N/A self replaceStr N/A N/A N/A N/A self _src replaceStr N/A N/A self _pos 0 N/A N/A self _codeChunks N/A N/A N/A N/A self parse N/A src N/A N/A self N/A N/A N/A N/A self _src N/A pos N/A N/A self N/A N/A N/A N/A self _pos N/A setPos N/A N/A self pos N/A N/A N/A N/A self _pos pos N/A atEnd N/A N/A self N/A N/A N/A N/A N/A self _pos N/A len N/A self _src N/A advance N/A N/A self offset N/A 1 N/A N/A N/A self _pos offset N/A readTo N/A N/A self to start N/A None N/A N/A N/A start None N/A N/A start N/A self _pos N/A N/A self _pos to N/A N/A N/A self atEnd N/A N/A N/A N/A self _src N/A start N/A N/A N/A N/A self _src N/A start to N/A matchBackref N/A N/A self N/A N/A N/A N/A N/A N/A self backrefRE match N/A N/A self src N/A N/A self pos N/A getBackref N/A N/A self N/A N/A N/A m N/A N/A self matchBackref N/A N/A N/A self setPos N/A N/A m end N/A N/A N/A m group 1 N/A matchGroup N/A N/A self N/A N/A N/A N/A N/A N/A self groupRE match N/A N/A self src N/A N/A self pos N/A getGroup N/A N/A self N/A N/A N/A m N/A N/A self matchGroup N/A N/A N/A self setPos N/A N/A m end N/A N/A N/A m group 1 N/A parse N/A N/A self N/A N/A N/A N/A N/A N/A self atEnd N/A N/A N/A N/A self matchBackref N/A N/A N/A N/A self eatBackref N/A N/A N/A N/A self matchGroup N/A N/A N/A N/A self eatGroup N/A N/A N/A N/A self eatStrConst N/A eatStrConst N/A N/A self N/A N/A N/A startPos N/A N/A self pos N/A N/A N/A N/A self atEnd N/A N/A N/A N/A N/A self matchBackref N/A N/A self matchGroup N/A N/A N/A N/A N/A N/A self advance N/A strConst N/A N/A self readTo N/A N/A self pos start startPos N/A N/A N/A self addChunk N/A repr strConst N/A eatBackref N/A N/A self N/A N/A N/A N/A N/A self addChunk N/A N/A m.group( N/A N/A self getBackref ) N/A eatGroup N/A N/A self N/A N/A N/A N/A N/A self addChunk N/A N/A m.group(" N/A N/A self getGroup ") N/A addChunk N/A N/A self chunk N/A N/A N/A N/A N/A N/A self _codeChunks append chunk N/A codeBody N/A N/A self N/A N/A N/A N/A N/A ,  join N/A self _codeChunks N/A code N/A N/A self N/A N/A N/A N/A def subber(m):
	return ''.join([%s])
 N/A N/A self codeBody N/A subberFunc N/A N/A self N/A N/A N/A N/A N/A self code N/A subber N/A N/A FindAndReplace N/A N/A N/A Find and replace all instances of 'patternOrRE' with 'replacement' for
    each file in the 'files' list. This is a multi-file version of re.sub().

    'patternOrRE' can be a raw regex pattern or
    a regex object as generated by the re module. 'replacement' can be any
    string that would work with patternOrRE.sub(replacement, fileContents).
     __init__ N/A N/A self files patternOrRE replacement recordResults N/A True N/A N/A N/A isinstance patternOrRE basestring N/A N/A N/A self _regex N/A N/A re compile patternOrRE N/A N/A N/A self _regex patternOrRE N/A N/A isinstance replacement basestring N/A N/A N/A self _subber N/A N/A N/A _GenSubberFunc replacement subberFunc N/A N/A N/A self _subber replacement N/A N/A self _pattern pattern N/A N/A self _regex pattern N/A N/A self _files files N/A N/A self _results N/A N/A N/A self _recordResults recordResults N/A N/A self _usePgrep False N/A N/A N/A N/A N/A N/A N/A N/A os popen3 pgrep N/A 2 read startswith Usage: N/A N/A tmpFile N/A mktemp N/A N/A N/A N/A open tmpFile w write # N/A N/A N/A N/A N/A N/A N/A os popen3 N/A N/A N/A pgrep " pattern "  tmpFile N/A 2 read N/A N/A N/A self _usePgrep True N/A N/A N/A os remove tmpFile N/A N/A N/A self _run N/A results N/A N/A self N/A N/A N/A N/A self _results N/A _run N/A N/A self N/A N/A N/A regex N/A self _regex N/A subber N/A self _subDispatcher N/A usePgrep N/A self _usePgrep N/A pattern N/A self _pattern N/A file N/A self _files N/A N/A N/A N/A N/A N/A os path isfile file N/A N/A N/A N/A self _currFile file N/A found False N/A N/A orig N/A locals N/A N/A orig N/A N/A self _usePgrep N/A N/A N/A N/A N/A N/A os popen N/A N/A N/A pgrep " pattern "  file read N/A N/A found True N/A N/A orig N/A N/A N/A open file read N/A N/A N/A regex search orig N/A N/A found True N/A found N/A N/A N/A orig N/A locals N/A N/A orig N/A N/A N/A open file read N/A new N/A N/A regex sub subber orig N/A N/A N/A N/A open file w write new N/A _subDispatcher N/A N/A self match N/A N/A N/A N/A self _recordResults N/A N/A N/A N/A self _currFile N/A self _results N/A N/A res N/A N/A self _results N/A N/A self _currFile N/A N/A N/A res N/A count 0 N/A N/A res N/A matches N/A N/A N/A res N/A N/A self _results N/A N/A self _currFile N/A N/A res N/A count 1 N/A N/A N/A N/A res N/A matches append N/A contents start end N/A N/A match group N/A N/A match start N/A N/A match end N/A N/A N/A self _subber match N/A N/A SourceFileStats N/A N/A N/A N/A _fileStats None __init__ N/A N/A self files N/A N/A N/A N/A self _fileStats stats N/A N/A file files N/A N/A N/A stats N/A file N/A N/A self getFileStats file N/A rawStats N/A N/A self N/A N/A N/A N/A self _fileStats N/A summary N/A N/A self N/A N/A N/A codeLines 0 N/A blankLines 0 N/A commentLines 0 N/A totalLines 0 N/A fileStats N/A N/A N/A N/A self rawStats values N/A N/A codeLines N/A fileStats N/A codeLines N/A blankLines N/A fileStats N/A blankLines N/A commentLines N/A fileStats N/A commentLines N/A totalLines N/A fileStats N/A totalLines N/A stats N/A codeLines blankLines commentLines totalLines codeLines blankLines commentLines totalLines N/A stats N/A printStats N/A N/A self N/A N/A N/A N/A getFileStats N/A N/A self fileName N/A N/A N/A codeLines 0 N/A blankLines 0 N/A commentLines 0 N/A commentLineRe N/A N/A re compile \s#.*$ N/A blankLineRe N/A N/A re compile \s$ N/A lines N/A N/A N/A N/A N/A open fileName read splitlines N/A totalLines N/A len lines N/A line lines N/A N/A N/A N/A commentLineRe match line N/A N/A commentLines 1 N/A N/A N/A N/A blankLineRe match line N/A N/A blankLines 1 N/A N/A codeLines 1 N/A stats N/A codeLines blankLines commentLines totalLines codeLines blankLines commentLines totalLines N/A stats N/A N/A