Module Expr Str Import alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assert BoolOpOr NameLoad NameLoad Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameStore NameLoad body If AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore Num orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignSub NameStore Num orelse If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Str body If BoolOpAnd UnaryOpNot NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad orelse If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad BinOpAdd NameLoad Num orelse If CompareEq NameLoad AttributeLoad NameLoad attr body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad NameLoad body Assign NameStore TupleLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If BoolOpAnd NameLoad CompareLtE NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareLt NameLoad Num body Continue If CompareIn NameLoad NameLoad body Continue If CompareIn NameLoad NameLoad body Continue If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num AugAssignAdd SubscriptStore NameLoad Index NameLoad Num For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body AugAssignSub SubscriptStore NameLoad Index NameLoad Num Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Str Str Str Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Assign NameStore NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Num Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If UnaryOpNot NameLoad body Assert NameLoad Str Assign NameStore Call NameLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd NameLoad Str NameLoad Str handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad Str Str Str Str body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return ListComp Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Num Assign NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Num Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If NameLoad body If CompareNotEq NameLoad NameLoad body Expr Yield TupleLoad NameLoad NameLoad Assign NameStore NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad If CompareNotEq NameLoad NameLoad body Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Return BinOpAdd BinOpAdd Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Num Assign NameStore NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareGtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore NameLoad orelse If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If BoolOpOr UnaryOpNot NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareGtE AttributeLoad NameLoad attr Num CompareNotIn AttributeLoad NameLoad attr NameLoad body If NameLoad body AugAssignSub NameStore Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpUSub AttributeLoad AttributeLoad NameLoad attr attr If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body For NameStore Call NameLoad NameLoad body If CompareIn SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Break If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body If BoolOpAnd NameLoad NameLoad body If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body If CompareIs SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr body Assign NameStore UnaryOpUSub AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore SubscriptLoad NameLoad Index Num attr BinOpSub AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num body Assign AttributeStore SubscriptLoad NameLoad Index NameLoad attr BinOpSub AttributeLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore NameLoad body Assert Call NameLoad ListComp BoolOpOr CompareIn NameLoad NameLoad CompareLt NameLoad Num comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListComp TupleLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Yield TupleLoad Num AttributeLoad SubscriptLoad NameLoad Index Num attr For NameStore NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Continue Assign NameStore Call NameLoad Assign NameStore ListLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If CompareLt NameLoad Num body Expr Yield TupleLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Continue Assign NameStore CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore AttributeLoad Call NameLoad attr
N/A N/A Code parsing for Coverage. N/A dis re sys token tokenize coverage.backward set sorted StringIO coverage.backward open_source range coverage.backward reversed coverage.backward bytes_to_ints coverage.bytecode ByteCodes CodeObjects coverage.misc nice_pair expensive join_regex coverage.misc CoverageException NoSource NotPython CodeParser N/A object N/A N/A Parse code to find executable lines, excluded lines, etc. __init__ N/A N/A self text filename exclude N/A None None None N/A N/A 
        Source can be provided as `text`, the text itself, or `filename`, from
        which the text will be read.  Excluded lines are those that match
        `exclude`, a regex.

         N/A N/A text filename CodeParser needs either text or filename N/A N/A self filename N/A filename <code> N/A N/A self text text N/A N/A N/A self text N/A N/A N/A N/A sourcef N/A open_source N/A self filename N/A N/A N/A N/A self text N/A N/A sourcef read N/A N/A N/A N/A sourcef close N/A N/A N/A IOError N/A N/A N/A _ err _ N/A N/A sys exc_info N/A N/A NoSource N/A No source for code: '%s': %s N/A N/A self filename err N/A N/A N/A self text N/A N/A ord N/A N/A self text N/A 0 65279 N/A N/A N/A self text N/A N/A self text N/A 1 N/A N/A self exclude exclude N/A N/A self show_tokens False N/A N/A self lines N/A N/A N/A self text split N/A N/A self excluded N/A set N/A N/A self docstrings N/A set N/A N/A self classdefs N/A set N/A N/A self multiline N/A N/A N/A self statement_starts N/A set N/A N/A self _byte_parser None N/A _get_byte_parser N/A N/A self N/A N/A N/A Create a ByteParser on demand. N/A N/A N/A self _byte_parser N/A N/A N/A self _byte_parser N/A ByteParser text N/A self text filename N/A self filename N/A N/A self _byte_parser N/A N/A byte_parser N/A property _get_byte_parser lines_matching N/A N/A self N/A regexes N/A N/A Find the lines matching one of a list of regexes.

        Returns a set of line numbers, the lines that contain a match for one
        of the regexes in `regexes`.  The entire line needn't match, just a
        part of it.

         N/A regex_c N/A N/A re compile N/A join_regex regexes N/A matches N/A set N/A N/A i ltext N/A enumerate N/A self lines N/A N/A N/A N/A regex_c search ltext N/A N/A N/A N/A matches add N/A i 1 N/A matches N/A _raw_parse N/A N/A self N/A N/A N/A Parse the source to find the interesting facts about its lines.

        A handful of member fields are updated.

         N/A N/A self exclude N/A N/A N/A self excluded N/A N/A self lines_matching N/A self exclude N/A indent 0 N/A exclude_indent 0 N/A excluding False N/A prev_toktype N/A token INDENT N/A first_line None N/A empty True N/A tokgen N/A generate_tokens N/A self text N/A N/A toktype ttext N/A slineno _ N/A elineno _ ltext tokgen N/A N/A N/A self show_tokens N/A N/A N/A %10s %5s %-20r %r N/A N/A N/A N/A tokenize tok_name get toktype toktype N/A nice_pair N/A slineno elineno ttext ltext N/A N/A toktype N/A token INDENT N/A N/A indent 1 N/A N/A N/A toktype N/A token DEDENT N/A N/A indent 1 N/A N/A N/A N/A toktype N/A token NAME N/A ttext class N/A N/A N/A N/A N/A self classdefs add slineno N/A N/A N/A N/A toktype N/A token OP N/A ttext : N/A N/A N/A N/A excluding N/A elineno N/A self excluded N/A N/A exclude_indent indent N/A excluding True N/A N/A N/A N/A toktype N/A token STRING N/A prev_toktype N/A token INDENT N/A N/A N/A N/A N/A self docstrings update N/A range slineno N/A elineno 1 N/A N/A N/A toktype N/A token NEWLINE N/A N/A N/A N/A first_line None N/A elineno first_line N/A N/A rng N/A first_line elineno N/A l N/A range first_line N/A elineno 1 N/A N/A N/A N/A self multiline N/A l rng N/A first_line None N/A N/A N/A N/A ttext strip N/A toktype N/A tokenize COMMENT N/A N/A empty False N/A N/A first_line None N/A N/A first_line slineno N/A N/A excluding N/A indent exclude_indent N/A N/A excluding False N/A excluding N/A N/A N/A N/A N/A self excluded add elineno N/A prev_toktype toktype N/A N/A empty N/A N/A N/A N/A N/A self statement_starts update N/A N/A N/A self byte_parser _find_statements N/A first_line N/A N/A self line N/A N/A N/A Return the first line number of the statement including `line`. N/A rng N/A N/A N/A self multiline get line N/A rng N/A N/A first_line N/A rng N/A 0 N/A N/A first_line line N/A first_line N/A first_lines N/A N/A self lines N/A ignores N/A N/A Map the line numbers in `lines` to the correct first line of the
        statement.

        Skip any line mentioned in any of the sequences in `ignores`.

        Returns a set of the first lines.

         N/A ignore N/A set N/A ign ignores N/A N/A N/A N/A ignore update ign N/A lset N/A set N/A l lines N/A N/A N/A l ignore N/A N/A N/A new_l N/A N/A self first_line l N/A N/A new_l ignore N/A N/A N/A N/A lset add new_l N/A lset N/A parse_source N/A N/A self N/A N/A N/A Parse source text to find executable lines, excluded lines, etc.

        Return values are 1) a set of executable line numbers, and 2) a set of
        excluded line numbers.

        Reported line numbers are normalized to the first line of multi-line
        statements.

         N/A N/A N/A N/A N/A self _raw_parse N/A N/A N/A N/A N/A tokenize TokenError IndentationError N/A N/A N/A _ tokerr _ N/A N/A sys exc_info N/A N/A msg lineno N/A tokerr args N/A N/A NotPython N/A Couldn't parse '%s' as Python source: '%s' at %s N/A N/A self filename msg lineno N/A excluded_lines N/A N/A self first_lines N/A self excluded N/A lines N/A N/A self first_lines N/A self statement_starts excluded_lines N/A self docstrings N/A N/A lines excluded_lines N/A arcs N/A N/A self N/A N/A N/A Get information about the arcs available in the code.

        Returns a sorted list of line number pairs.  Line numbers have been
        normalized to the first line of multiline statements.

         N/A all_arcs N/A N/A N/A l1 l2 N/A N/A N/A self byte_parser _all_arcs N/A N/A fl1 N/A N/A self first_line l1 N/A fl2 N/A N/A self first_line l2 N/A N/A fl1 fl2 N/A N/A N/A N/A all_arcs append N/A fl1 fl2 N/A N/A sorted all_arcs N/A N/A arcs N/A expensive arcs exit_counts N/A N/A self N/A N/A N/A Get a mapping from line numbers to count of exits from that line.

        Excluded lines are excluded.

         N/A excluded_lines N/A N/A self first_lines N/A self excluded N/A exit_counts N/A N/A N/A l1 l2 N/A N/A self arcs N/A N/A N/A l1 0 N/A N/A N/A N/A l1 excluded_lines N/A N/A N/A N/A l2 excluded_lines N/A N/A N/A N/A l1 exit_counts N/A N/A N/A exit_counts N/A l1 0 N/A N/A exit_counts N/A l1 1 N/A l N/A self classdefs N/A N/A N/A l exit_counts N/A N/A N/A exit_counts N/A l 1 N/A exit_counts N/A N/A exit_counts N/A expensive exit_counts N/A _opcode N/A N/A name N/A N/A N/A Return the opcode by name from the dis module. N/A N/A N/A dis opmap N/A name N/A _opcode_set N/A N/A N/A names N/A N/A Return a set of opcodes by the names in `names`. N/A s N/A set N/A name names N/A N/A N/A N/A N/A N/A s add N/A _opcode name N/A N/A N/A KeyError N/A N/A N/A s N/A N/A OPS_CODE_END N/A _opcode_set RETURN_VALUE N/A OPS_CHUNK_END N/A _opcode_set JUMP_ABSOLUTE JUMP_FORWARD RETURN_VALUE RAISE_VARARGS BREAK_LOOP CONTINUE_LOOP N/A OPS_CHUNK_BEGIN N/A _opcode_set JUMP_ABSOLUTE JUMP_FORWARD N/A OPS_PUSH_BLOCK N/A _opcode_set SETUP_LOOP SETUP_EXCEPT SETUP_FINALLY SETUP_WITH N/A OPS_EXCEPT_BLOCKS N/A _opcode_set SETUP_EXCEPT SETUP_FINALLY N/A OPS_POP_BLOCK N/A _opcode_set POP_BLOCK N/A OPS_NO_JUMP OPS_PUSH_BLOCK N/A OP_BREAK_LOOP N/A _opcode BREAK_LOOP N/A OP_END_FINALLY N/A _opcode END_FINALLY N/A OP_COMPARE_OP N/A _opcode COMPARE_OP N/A COMPARE_EXCEPTION 10 N/A OP_LOAD_CONST N/A _opcode LOAD_CONST N/A OP_RETURN_VALUE N/A _opcode RETURN_VALUE ByteParser N/A object N/A N/A Parse byte codes to understand the structure of code. __init__ N/A N/A self code text filename N/A None None None N/A N/A code N/A N/A N/A self code code N/A N/A self text text N/A N/A N/A text N/A N/A filename If no code or text, need a filename N/A sourcef N/A open_source filename N/A N/A N/A text N/A N/A sourcef read N/A N/A N/A N/A sourcef close N/A N/A self text text N/A N/A N/A N/A self code N/A compile N/A text filename exec N/A N/A N/A SyntaxError N/A N/A N/A _ synerr _ N/A N/A sys exc_info N/A N/A NotPython N/A Couldn't parse '%s' as Python source: '%s' at line %d N/A filename N/A synerr msg N/A synerr lineno N/A attr N/A co_lnotab co_firstlineno co_consts co_code N/A N/A N/A N/A hasattr N/A self code attr N/A N/A N/A CoverageException This implementation of Python doesn't support code analysis.
Run coverage.py under CPython for this command. N/A child_parsers N/A N/A self N/A N/A N/A Iterate over all the code objects nested within this one.

        The iteration includes `self` as its first value.

         N/A children N/A CodeObjects N/A self code N/A N/A N/A ByteParser code c text N/A self text N/A c children N/A _bytes_lines N/A N/A self N/A N/A N/A Map byte offsets to line numbers in `code`.

        Uses co_lnotab described in Python/compile.c to map byte offsets to
        line numbers.  Produces a sequence: (b0, l0), (b1, l1), ...

        Only byte offsets that correspond to line numbers are included in the
        results.

         N/A byte_increments N/A bytes_to_ints N/A N/A N/A self code co_lnotab N/A 0 2 N/A line_increments N/A bytes_to_ints N/A N/A N/A self code co_lnotab N/A 1 2 N/A last_line_num None N/A line_num N/A N/A self code co_firstlineno N/A byte_num 0 N/A N/A byte_incr line_incr N/A zip byte_increments line_increments N/A N/A byte_incr N/A N/A N/A line_num last_line_num N/A N/A N/A N/A byte_num line_num N/A last_line_num line_num N/A byte_num byte_incr N/A line_num line_incr N/A N/A line_num last_line_num N/A N/A N/A N/A byte_num line_num N/A _find_statements N/A N/A self N/A N/A N/A Find the statements in `self.code`.

        Produce a sequence of line numbers that start statements.  Recurses
        into all code objects reachable from `self.code`.

         N/A bp N/A N/A self child_parsers N/A N/A N/A _ l N/A N/A bp _bytes_lines N/A N/A N/A l N/A _block_stack_repr N/A N/A self block_stack N/A N/A N/A Get a string version of `block_stack`, for debugging. N/A blocks N/A N/A ,  join N/A N/A (%s, %r) N/A N/A N/A dis opname N/A N/A b N/A 0 N/A b N/A 1 N/A b block_stack N/A N/A N/A [ blocks ] N/A _split_into_chunks N/A N/A self N/A N/A N/A Split the code object into a list of `Chunk` objects.

        Each chunk is only entered at its first instruction, though there can
        be many exits from a chunk.

        Returns a list of `Chunk` objects.

         N/A chunks N/A N/A chunk None N/A bytes_lines_map N/A dict N/A N/A self _bytes_lines N/A block_stack N/A N/A ignore_branch 0 N/A ult penult None N/A jump_to N/A set N/A bytecodes N/A list N/A ByteCodes N/A N/A self code co_code N/A bc bytecodes N/A N/A N/A N/A bc jump_to 0 N/A N/A N/A N/A jump_to add N/A bc jump_to N/A chunk_lineno 0 N/A bc bytecodes N/A N/A start_new_chunk False N/A first_chunk False N/A N/A N/A bc offset bytes_lines_map N/A N/A start_new_chunk True N/A chunk_lineno N/A bytes_lines_map N/A N/A bc offset N/A first_chunk True N/A N/A N/A N/A bc offset jump_to N/A N/A start_new_chunk True N/A N/A N/A N/A bc op OPS_CHUNK_BEGIN N/A N/A start_new_chunk True N/A N/A N/A chunk start_new_chunk N/A N/A chunk N/A N/A N/A N/A N/A chunk exits add N/A bc offset N/A chunk N/A Chunk N/A bc offset chunk_lineno first_chunk N/A N/A N/A chunks append chunk N/A N/A N/A N/A bc jump_to 0 N/A N/A bc op OPS_NO_JUMP N/A N/A ignore_branch N/A N/A ignore_branch 1 N/A N/A N/A N/A N/A chunk exits add N/A bc jump_to N/A N/A N/A bc op OPS_CODE_END N/A N/A N/A N/A N/A chunk exits add N/A N/A N/A self code co_firstlineno N/A N/A N/A bc op OPS_PUSH_BLOCK N/A N/A N/A N/A block_stack append N/A N/A bc op N/A bc jump_to N/A N/A N/A bc op OPS_POP_BLOCK N/A N/A N/A N/A block_stack pop N/A N/A N/A bc op OPS_CHUNK_END N/A N/A N/A N/A bc op OP_BREAK_LOOP N/A N/A N/A N/A N/A chunk exits add N/A N/A block_stack N/A -1 N/A 1 N/A chunk None N/A N/A N/A bc op OP_END_FINALLY N/A N/A block N/A reversed block_stack N/A N/A N/A N/A block N/A 0 OPS_EXCEPT_BLOCKS N/A N/A N/A N/A N/A chunk exits add N/A block N/A 1 N/A N/A N/A N/A N/A bc op OP_COMPARE_OP N/A N/A bc arg COMPARE_EXCEPTION N/A N/A ignore_branch 1 N/A penult ult N/A ult bc N/A chunks N/A N/A N/A ult penult N/A N/A N/A N/A N/A penult op OP_LOAD_CONST N/A N/A ult op OP_RETURN_VALUE N/A N/A N/A N/A N/A N/A self code co_consts N/A N/A penult arg None N/A N/A N/A N/A N/A chunks N/A -1 byte N/A penult offset N/A N/A ex N/A N/A N/A self code co_firstlineno N/A last_chunk N/A chunks N/A -1 N/A N/A N/A N/A last_chunk exits remove ex N/A N/A N/A N/A last_chunk exits add N/A penult offset N/A chunk N/A Chunk N/A penult offset N/A last_chunk line False N/A N/A N/A N/A chunk exits add ex N/A N/A N/A chunks append chunk N/A N/A N/A chunks N/A -1 length N/A N/A bc next_offset N/A N/A chunks N/A -1 byte N/A i N/A range N/A N/A len chunks 1 N/A N/A N/A N/A chunks N/A i length N/A N/A N/A chunks N/A N/A i 1 byte N/A N/A chunks N/A i byte N/A chunks N/A validate_chunks N/A N/A self chunks N/A N/A N/A Validate the rule that chunks have a single entrance. N/A starts N/A set N/A N/A ch byte N/A ch chunks N/A ch chunks N/A N/A N/A all N/A N/A N/A ex starts N/A ex 0 N/A ex N/A ch exits N/A _arcs N/A N/A self N/A N/A N/A Find the executable arcs in the code.

        Yields pairs: (from,to).  From and to are integer line numbers.  If
        from is < 0, then the arc is an entrance into the code object.  If to
        is < 0, the arc is an exit from the code object.

         N/A chunks N/A N/A self _split_into_chunks N/A byte_chunks N/A dict N/A N/A N/A c byte c N/A c chunks N/A N/A N/A -1 N/A N/A byte_chunks N/A 0 line N/A chunk chunks N/A N/A N/A N/A chunk first N/A N/A N/A chunks_considered N/A set N/A chunks_to_consider N/A chunk N/A chunks_to_consider N/A N/A this_chunk N/A N/A chunks_to_consider pop N/A N/A N/A chunks_considered add this_chunk N/A ex N/A this_chunk exits N/A N/A N/A ex 0 N/A N/A N/A N/A N/A chunk line ex N/A N/A next_chunk N/A byte_chunks N/A ex N/A N/A next_chunk chunks_considered N/A N/A N/A backward_jump N/A N/A next_chunk byte N/A this_chunk byte N/A N/A N/A next_chunk first backward_jump N/A N/A N/A N/A next_chunk line N/A chunk line N/A N/A N/A N/A N/A chunk line N/A next_chunk line N/A N/A N/A N/A chunks_to_consider append next_chunk N/A _all_chunks N/A N/A self N/A N/A N/A Returns a list of `Chunk` objects for this code and its children.

        See `_split_into_chunks` for details.

         N/A chunks N/A N/A bp N/A N/A self child_parsers N/A N/A N/A N/A chunks extend N/A N/A bp _split_into_chunks N/A chunks N/A _all_arcs N/A N/A self N/A N/A N/A Get the set of all arcs in this code object and its children.

        See `_arcs` for details.

         N/A arcs N/A set N/A bp N/A N/A self child_parsers N/A N/A N/A N/A arcs update N/A N/A bp _arcs N/A arcs N/A N/A Chunk N/A object N/A N/A A sequence of byte codes with a single entrance.

    To analyze byte code, we have to divide it into chunks, sequences of byte
    codes such that each chunk has only one entrance, the first instruction in
    the block.

    This is almost the CS concept of `basic block`_, except that we're willing
    to have many exits from a chunk, and "basic block" is a more cumbersome
    term.

    .. _basic block: http://en.wikipedia.org/wiki/Basic_block

    `line` is the source line number containing this chunk.

    `first` is true if this is the first chunk in the source line.

    An exit < 0 means the chunk can leave the code (return).  The exit is
    the negative of the starting line number of the code block.

     __init__ N/A N/A self byte line first N/A N/A N/A N/A self byte byte N/A N/A self line line N/A N/A self first first N/A N/A self length 0 N/A N/A self exits N/A set N/A __repr__ N/A N/A self N/A N/A N/A N/A self first N/A N/A bang ! N/A N/A bang N/A N/A <%d+%d @%d%s %r> N/A N/A self byte N/A self length N/A self line bang N/A list N/A self exits N/A N/A CachedTokenizer N/A object N/A N/A A one-element cache around tokenize.generate_tokens.

    When reporting, coverage.py tokenizes files twice, once to find the
    structure of the file, and once to syntax-color it.  Tokenizing is
    expensive, and easily cached.

    This is a one-element cache so that our twice-in-a-row tokenizing doesn't
    actually tokenize twice.

     __init__ N/A N/A self N/A N/A N/A N/A self last_text None N/A N/A self last_tokens None N/A generate_tokens N/A N/A self text N/A N/A N/A A stand-in for `tokenize.generate_tokens`. N/A N/A text N/A self last_text N/A N/A N/A self last_text text N/A N/A self last_tokens N/A list N/A N/A tokenize generate_tokens N/A N/A StringIO text readline N/A N/A self last_tokens N/A N/A N/A generate_tokens N/A N/A CachedTokenizer generate_tokens