Module Expr Str Import alias ImportFrom alias Assign NameStore ListLoad Str ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad body Return BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str BinOpMod Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr CompareNotIn Str NameLoad Assign AttributeStore NameLoad attr CompareNotIn Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Num Assign NameStore TupleLoad Num Num Num Num Num Num For NameStore Call NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index BinOpMod BinOpFloorDiv NameLoad Num Num Assign NameStore SubscriptLoad NameLoad Index BinOpMod BinOpFloorDiv NameLoad Num Num Assign NameStore SubscriptLoad NameLoad Index BinOpMod NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad For NameStore Call NameLoad Num Num body Assign NameStore BinOpAdd Num BinOpMult NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpMult BinOpMult Num Num Num Assign NameStore Num For NameStore Call NameLoad Num Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad Call NameLoad NameLoad Num handlers ExceptHandler type NameLoad body Assign NameStore Num Assign NameStore BinOpBitAnd BinOpRShift NameLoad Num Num Assign NameStore BinOpBitAnd BinOpRShift NameLoad Num Num Assign NameStore BinOpBitAnd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad If SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If BoolOpAnd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr CompareLt AttributeLoad NameLoad attr TupleLoad Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For TupleStore NameStore NameStore NameLoad body Assign NameStore NameLoad While BoolOpAnd NameLoad NameLoad body TryExcept body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore SubscriptLoad NameLoad Slice Num body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str If SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
    pygments.formatters.terminal256
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for 256-color terminal output with ANSI sequences.

    RGB-to-XTERM color conversion routines adapted from xterm256-conv
    tool (http://frexx.de/xterm-256-notes/data/xterm256-conv2.tar.bz2)
    by Wolfgang Frisch.

    Formatter version 1.

    :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
 N/A sys pygments.formatter Formatter N/A __all__ N/A Terminal256Formatter EscapeSequence N/A N/A __init__ N/A N/A self fg bg bold underline N/A None None False False N/A N/A N/A self fg fg N/A N/A self bg bg N/A N/A self bold bold N/A N/A self underline underline N/A escape N/A N/A self attrs N/A N/A N/A N/A len attrs N/A N/A N/A N/A [ N/A N/A ; join attrs m N/A N/A color_string N/A N/A self N/A N/A N/A attrs N/A N/A N/A N/A self fg None N/A N/A N/A N/A attrs extend N/A 38 5 N/A %i N/A self fg N/A N/A N/A self bg None N/A N/A N/A N/A attrs extend N/A 48 5 N/A %i N/A self bg N/A N/A self bold N/A N/A N/A N/A attrs append 01 N/A N/A self underline N/A N/A N/A N/A attrs append 04 N/A N/A N/A self escape attrs N/A reset_string N/A N/A self N/A N/A N/A attrs N/A N/A N/A N/A self fg None N/A N/A N/A N/A attrs append 39 N/A N/A N/A self bg None N/A N/A N/A N/A attrs append 49 N/A N/A N/A self bold N/A self underline N/A N/A N/A N/A attrs append 00 N/A N/A N/A self escape attrs N/A N/A Terminal256Formatter N/A Formatter N/A N/A 
    Format tokens with ANSI color sequences, for output in a 256-color
    terminal or console. Like in `TerminalFormatter` color sequences
    are terminated at newlines, so that paging the output works correctly.

    The formatter takes colors from a style defined by the `style` option
    and converts them to nearest ANSI 256-color escape sequences. Bold and
    underline attributes from the style are preserved (and displayed).

    *New in Pygments 0.9.*

    Options accepted:

    `style`
        The style to use, can be a string or a Style subclass (default:
        ``'default'``).
     N/A name Terminal256 N/A aliases N/A terminal256 console256 256 N/A filenames N/A __init__ N/A N/A self N/A options N/A N/A N/A N/A Formatter __init__ self options N/A N/A self xterm_colors N/A N/A N/A self best_match N/A N/A N/A self style_string N/A N/A N/A self usebold N/A nobold options N/A N/A self useunderline N/A nounderline options N/A N/A N/A self _build_color_table N/A N/A N/A self _setup_styles N/A _build_color_table N/A N/A self N/A N/A N/A N/A N/A N/A self xterm_colors append N/A 0 0 0 N/A N/A N/A N/A self xterm_colors append N/A 205 0 0 N/A N/A N/A N/A self xterm_colors append N/A 0 205 0 N/A N/A N/A N/A self xterm_colors append N/A 205 205 0 N/A N/A N/A N/A self xterm_colors append N/A 0 0 238 N/A N/A N/A N/A self xterm_colors append N/A 205 0 205 N/A N/A N/A N/A self xterm_colors append N/A 0 205 205 N/A N/A N/A N/A self xterm_colors append N/A 229 229 229 N/A N/A N/A N/A self xterm_colors append N/A 127 127 127 N/A N/A N/A N/A self xterm_colors append N/A 255 0 0 N/A N/A N/A N/A self xterm_colors append N/A 0 255 0 N/A N/A N/A N/A self xterm_colors append N/A 255 255 0 N/A N/A N/A N/A self xterm_colors append N/A 92 92 255 N/A N/A N/A N/A self xterm_colors append N/A 255 0 255 N/A N/A N/A N/A self xterm_colors append N/A 0 255 255 N/A N/A N/A N/A self xterm_colors append N/A 255 255 255 N/A valuerange N/A 0 95 135 175 215 255 N/A i N/A range 217 N/A N/A r N/A valuerange N/A N/A N/A i 36 6 N/A g N/A valuerange N/A N/A N/A i 6 6 N/A b N/A valuerange N/A N/A i 6 N/A N/A N/A N/A self xterm_colors append N/A r g b N/A i N/A range 1 22 N/A N/A v N/A 8 N/A i 10 N/A N/A N/A N/A self xterm_colors append N/A v v v N/A _closest_color N/A N/A self r g b N/A N/A N/A distance N/A N/A 257 257 3 N/A match 0 N/A i N/A range 0 254 N/A N/A values N/A N/A self xterm_colors N/A i N/A rd N/A r N/A values N/A 0 N/A gd N/A g N/A values N/A 1 N/A bd N/A b N/A values N/A 2 N/A d N/A N/A N/A rd rd N/A gd gd N/A bd bd N/A N/A d distance N/A N/A match i N/A distance d N/A match N/A _color_index N/A N/A self color N/A N/A N/A index N/A N/A N/A self best_match get color None N/A N/A index None N/A N/A N/A N/A rgb N/A int N/A str color 16 N/A N/A N/A ValueError N/A N/A rgb 0 N/A r N/A N/A rgb 16 255 N/A g N/A N/A rgb 8 255 N/A b N/A rgb 255 N/A index N/A N/A self _closest_color r g b N/A N/A N/A self best_match N/A color index N/A index N/A _setup_styles N/A N/A self N/A N/A N/A N/A ttype ndef N/A self style N/A N/A escape N/A EscapeSequence N/A N/A ndef N/A color N/A N/A N/A escape fg N/A N/A self _color_index N/A ndef N/A color N/A N/A ndef N/A bgcolor N/A N/A N/A escape bg N/A N/A self _color_index N/A ndef N/A bgcolor N/A N/A N/A self usebold N/A ndef N/A bold N/A N/A N/A escape bold True N/A N/A N/A self useunderline N/A ndef N/A underline N/A N/A N/A escape underline True N/A N/A N/A self style_string N/A N/A str ttype N/A N/A N/A escape color_string N/A N/A escape reset_string N/A format N/A N/A self tokensource outfile N/A N/A N/A N/A N/A N/A self encoding N/A hasattr outfile encoding N/A hasattr outfile isatty N/A N/A outfile isatty N/A N/A sys version_info N/A 3 N/A N/A N/A self encoding N/A outfile encoding N/A N/A N/A Formatter format self tokensource outfile N/A format_unencoded N/A N/A self tokensource outfile N/A N/A N/A N/A ttype value tokensource N/A N/A not_found True N/A N/A ttype not_found N/A N/A N/A N/A N/A on off N/A N/A self style_string N/A N/A str ttype N/A spl N/A N/A value split N/A line N/A spl N/A -1 N/A N/A line N/A N/A N/A N/A outfile write N/A N/A on line off N/A N/A N/A outfile write N/A N/A spl N/A -1 N/A N/A N/A N/A outfile write N/A N/A on N/A spl N/A -1 off N/A not_found False N/A N/A N/A KeyError N/A N/A ttype N/A ttype N/A -1 N/A not_found N/A N/A N/A N/A outfile write value N/A N/A