Module Expr Str Import alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad Call NameLoad NameLoad attr Str Str Call AttributeLoad Call NameLoad NameLoad attr Str Str Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Str BinOpMod Str NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num If CompareGt NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num keyword Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num keyword Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore IfExp CompareEq Call AttributeLoad NameLoad attr Num Str Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword CompareIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If CompareIn Str NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad If BoolOpAnd UnaryOpNot NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareNotEq NameLoad BinOpSub NameLoad Num NameLoad body Assign NameStore CompareEq SubscriptLoad NameLoad Index BinOpSub NameLoad Num Str If UnaryOpNot NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict Str Str Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num If CompareIn NameLoad AttributeLoad NameLoad attr body Return Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad BoolOpOr UnaryOpNot NameLoad CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore ListLoad SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str orelse If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str orelse If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Dict Str Str Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore CompareIn Call AttributeLoad NameLoad attr Num ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If BoolOpAnd AttributeLoad NameLoad attr CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq Call AttributeLoad NameLoad attr Num Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num If CompareNotIn NameLoad AttributeLoad NameLoad attr body Return If SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return AugAssignAdd AttributeStore NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad BoolOpOr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num If CompareNotIn NameLoad AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num If CompareNotIn NameLoad AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert CompareGtE NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str If UnaryOpNot NameLoad body Return Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareNotEq SubscriptLoad NameLoad Index BinOpSub UnaryOpUSub NameLoad Num Str Assert CompareEq SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad BinOpMult Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assert CompareLtELtE Num NameLoad Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpMult Str NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body If CompareEq NameLoad Num body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Num Str Str body Assert CompareGtE NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpMult Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body If CompareEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Str body Assign NameStore BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Str If BoolOpAnd Call NameLoad NameLoad NameLoad CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Str orelse If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Markdown lexers.

The code has been adapted from the mistune library:

    mistune
    https://github.com/lepture/mistune/

    The fastest markdown parser in pure Python with renderer feature.
    :copyright: (c) 2014 - 2015 by Hsiaoming Yang.

 N/A re base_lexer BaseLexer BaseRenderer ext.six StringIO string_types _pure_pattern N/A N/A regex N/A N/A N/A pattern N/A regex pattern N/A N/A N/A pattern startswith ^ N/A N/A pattern N/A pattern N/A 1 N/A pattern N/A N/A _key_pattern N/A N/A re compile \s+ _keyify N/A N/A key N/A N/A N/A N/A N/A _key_pattern sub N/A N/A key lower N/A N/A _tag (?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:/|[^\w\s@]*@)\b BlockGrammar N/A object N/A N/A Grammars for block level tokens. N/A def_links N/A N/A re compile ^ *\[([^^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$) N/A def_footnotes N/A N/A re compile ^\[\^([^\]]+)\]: *([^\n]*(?:\n+|$)(?: {1,}[^\n]*(?:\n+|$))*) N/A newline N/A N/A re compile ^\n+ N/A block_code N/A N/A re compile ^( {4}[^\n]+\n*)+ N/A fences N/A N/A re compile ^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$) N/A hrule N/A N/A re compile ^ {0,3}[-*_](?: *[-*_]){2,} *(?:\n+|$) N/A heading N/A N/A re compile ^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$) N/A lheading N/A N/A re compile ^([^\n]+)\n *(=|-)+ *(?:\n+|$) N/A block_quote N/A N/A re compile ^( *>[^\n]+(\n[^\n]+)*\n*)+ N/A list_block N/A N/A re compile N/A ^( *)([*+-]|\d+\.) [\s\S]+?(?:\n+(?=\1?(?:[-*_] *){3,}(?:\n+|$))|\n+(?=%s)|\n+(?=%s)|\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) )\n*|\s*$) N/A N/A _pure_pattern def_links N/A _pure_pattern def_footnotes N/A list_item N/A N/A re compile ^(( *)(?:[*+-]|\d+\.) [^\n]*(?:\n(?!\2(?:[*+-]|\d+\.) )[^\n]*)*) flags N/A re M N/A list_bullet N/A N/A re compile ^ *(?:[*+-]|\d+\.) + N/A paragraph N/A N/A re compile N/A ^((?:[^\n]+\n?(?!%s|%s|%s|%s|%s|%s|%s|%s|%s))+)\n* N/A N/A N/A N/A _pure_pattern fences replace \1 \2 N/A N/A N/A _pure_pattern list_block replace \1 \3 N/A _pure_pattern hrule N/A _pure_pattern heading N/A _pure_pattern lheading N/A _pure_pattern block_quote N/A _pure_pattern def_links N/A _pure_pattern def_footnotes N/A < _tag N/A block_html N/A N/A re compile N/A ^ *(?:%s|%s|%s) *(?:\n{2,}|\s*$) N/A <!--[\s\S]*?--> N/A <(%s)[\s\S]+?<\/\1> _tag N/A <%s(?:"[^"]*"|'[^']*'|[^'">])*?> _tag N/A table N/A N/A re compile ^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n* N/A nptable N/A N/A re compile ^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n* N/A text N/A N/A re compile ^[^\n]+ N/A meta N/A N/A re compile (^|\n\n)
            (?P<sep_open>---)[ ]*  # open YAML stream
            (?P<alias>.+)?  # cell split, or !tag
            (\n
            (?P<body>(.+\n)+)  # optional YAML
            (?P<sep_close>(\.{3}|-{3}))  # close YAML stream
            )?(?:\n{2}|$) N/A re X N/A BlockLexer N/A BaseLexer N/A N/A Block level lexer for block grammars. N/A grammar_class BlockGrammar N/A default_rules N/A newline block_code fences meta heading nptable lheading block_quote list_block block_html def_links def_footnotes table paragraph text N/A list_rules N/A newline block_code fences meta lheading block_quote list_block block_html text N/A footnote_rules N/A newline block_code fences heading nptable lheading hrule block_quote list_block block_html table paragraph text __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super BlockLexer self __init__ kwargs N/A N/A self def_links N/A N/A N/A self def_footnotes N/A N/A parse_newline N/A N/A self m N/A N/A N/A length N/A len N/A N/A m group 0 N/A N/A length 1 N/A N/A N/A N/A N/A self renderer newline N/A parse_block_code N/A N/A self m N/A N/A N/A code N/A N/A m group 0 N/A pattern N/A N/A re compile ^ {4} N/A re M N/A code N/A N/A pattern sub code N/A N/A N/A N/A self renderer block_code code lang None N/A parse_fences N/A N/A self m N/A N/A N/A N/A N/A N/A self renderer block_code N/A N/A m group 3 lang N/A N/A m group 2 N/A parse_heading N/A N/A self m N/A N/A N/A N/A N/A N/A self renderer heading N/A N/A m group 2 level N/A len N/A N/A m group 1 N/A parse_lheading N/A N/A self m N/A N/A N/A Parse setext heading. N/A level N/A N/A N/A N/A m group 2 = 1 2 N/A N/A N/A N/A self renderer heading N/A N/A m group 1 level level N/A parse_hrule N/A N/A self m N/A N/A N/A N/A N/A N/A self renderer hrule N/A parse_list_block N/A N/A self m N/A N/A N/A bull N/A N/A m group 2 N/A N/A N/A N/A self renderer list_start ordered N/A . bull N/A cap N/A N/A m group 0 N/A N/A N/A self _process_list_item cap bull N/A N/A N/A N/A self renderer list_end N/A _process_list_item N/A N/A self cap bull N/A N/A N/A cap N/A N/A N/A N/A self grammar list_item findall cap N/A _next False N/A length N/A len cap N/A i N/A range length N/A N/A item N/A N/A cap N/A i N/A 0 N/A space N/A len item N/A item N/A N/A N/A N/A self grammar list_bullet sub item N/A N/A item N/A N/A space N/A space N/A len item N/A pattern N/A N/A re compile N/A ^ {1,%d} space flags N/A re M N/A item N/A N/A pattern sub item N/A loose _next N/A N/A N/A loose N/A N/A re search \n\n(?!\s*$) item N/A N/A loose True N/A rest N/A len item N/A N/A N/A i N/A length 1 rest N/A N/A _next N/A N/A item N/A N/A rest 1 N/A N/A loose N/A N/A loose _next N/A loose N/A N/A N/A N/A N/A self renderer loose_item_start N/A N/A N/A N/A N/A self renderer list_item_start N/A N/A N/A self read item N/A self list_rules N/A N/A N/A N/A self renderer list_item_end N/A parse_block_quote N/A N/A self m N/A N/A N/A N/A N/A N/A self renderer block_quote_start N/A cap N/A N/A m group 0 N/A pattern N/A N/A re compile ^ *> ? flags N/A re M N/A cap N/A N/A pattern sub cap N/A N/A N/A self read cap N/A N/A N/A N/A self renderer block_quote_end N/A parse_def_links N/A N/A self m N/A N/A N/A key N/A _keyify N/A N/A m group 1 N/A N/A N/A self def_links N/A key N/A link title N/A N/A m group 2 N/A N/A m group 3 N/A parse_def_footnotes N/A N/A self m N/A N/A N/A key N/A _keyify N/A N/A m group 1 N/A N/A key N/A self def_footnotes N/A N/A N/A N/A N/A self def_footnotes N/A key 0 N/A N/A N/A N/A self renderer footnote_start key N/A text N/A N/A m group 2 N/A N/A text N/A N/A lines N/A N/A text split N/A whitespace None N/A line N/A lines N/A 1 N/A N/A space N/A N/A len line N/A len N/A N/A line lstrip N/A N/A space N/A N/A whitespace N/A space whitespace N/A N/A whitespace space N/A newlines N/A N/A lines N/A 0 N/A line N/A lines N/A 1 N/A N/A N/A N/A newlines append N/A line N/A whitespace N/A text N/A N/A join newlines N/A N/A N/A self read text N/A self footnote_rules N/A N/A N/A N/A self renderer footnote_end key N/A parse_table N/A N/A self m N/A N/A N/A item N/A N/A self _process_table m N/A cells N/A N/A re sub (?: *\| *)?\n$ N/A N/A m group 3 N/A cells N/A N/A cells split N/A N/A i v N/A enumerate cells N/A N/A v N/A N/A re sub ^ *\| *| *\| *$ v N/A N/A cells N/A i N/A N/A re split  *\| * v N/A N/A item N/A cells cells N/A N/A N/A N/A self renderer table item N/A parse_nptable N/A N/A self m N/A N/A N/A item N/A N/A self _process_table m N/A cells N/A N/A re sub \n$ N/A N/A m group 3 N/A cells N/A N/A cells split N/A N/A i v N/A enumerate cells N/A N/A N/A cells N/A i N/A N/A re split  *\| * v N/A N/A item N/A cells cells N/A N/A N/A N/A self renderer nptable item N/A _process_table N/A N/A self m N/A N/A N/A header N/A N/A re sub ^ *| *\| *$ N/A N/A m group 1 N/A header N/A N/A re split  *\| * header N/A align N/A N/A re sub  *|\| *$ N/A N/A m group 2 N/A align N/A N/A re split  *\| * align N/A N/A i v N/A enumerate align N/A N/A N/A N/A re search ^ *-+: *$ v N/A N/A N/A align N/A i right N/A N/A N/A N/A re search ^ *:-+: *$ v N/A N/A N/A align N/A i center N/A N/A N/A N/A re search ^ *:-+ *$ v N/A N/A N/A align N/A i left N/A N/A N/A align N/A i None N/A item N/A type header align table header align N/A item N/A parse_block_html N/A N/A self m N/A N/A N/A pre N/A N/A N/A m group 1 N/A pre script style N/A text N/A N/A m group 0 N/A N/A N/A N/A self renderer block_html text pre pre N/A parse_paragraph N/A N/A self m N/A N/A N/A text N/A N/A N/A N/A m group 1 rstrip N/A N/A N/A N/A self renderer paragraph text N/A parse_text N/A N/A self m N/A N/A N/A text N/A N/A m group 0 N/A N/A N/A N/A self renderer text text N/A parse_meta N/A N/A self m N/A N/A N/A N/A N/A N/A N/A m group alias N/A N/A N/A m group body N/A N/A N/A N/A N/A self renderer text META SPLIT N/A N/A N/A N/A N/A m group alias N/A N/A N/A m group body N/A N/A N/A N/A N/A self renderer text META SINGLE ALIAS N/A N/A N/A N/A m group body N/A N/A N/A N/A N/A self renderer text META EXPLICIT N/A N/A N/A N/A N/A self renderer text META N/A N/A InlineGrammar N/A object N/A N/A Grammars for inline level tokens. N/A escape N/A N/A re compile ^\\([\\`*{}\[\]()#+\-.!_>~|]) N/A tag N/A N/A re compile ^<!--[\s\S]*?-->|^<\/\w+>|^<\w+[^>]*?> N/A autolink N/A N/A re compile ^   <([^ >]+(@|:\/)[^ >]+)> N/A link N/A N/A re compile ^!?\[((?:\[[^^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*\) N/A reflink N/A N/A re compile ^!?\[((?:\[[^^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\s*\[([^^\]]*)\] N/A nolink N/A N/A re compile ^!?\[((?:\[[^\]]*\]|[^\[\]])*)\] N/A url N/A N/A re compile ^(https?:\/\/[^\s<]+[^<.,:;"')\]\s]) N/A double_emphasis N/A N/A re compile ^_{2}(.+?)_{2}(?!_)|^\*{2}(.+?)\*{2}(?!\*) N/A emphasis N/A N/A re compile ^\b_((?:__|.)+?)_\b|^\*((?:\*\*|.)+?)\*(?!\*) N/A code N/A N/A re compile ^(`+)\s*(.*?[^`])\s*\1(?!`) N/A linebreak N/A N/A re compile ^ {2,}\n(?!\s*$) N/A strikethrough N/A N/A re compile ^~~(?=\S)(.*?\S)~~ N/A footnote N/A N/A re compile ^\[\^([^\]]+)\] N/A text N/A N/A re compile ^[\s\S]+?(?=[\\<!\[_*`~]|https?://| {2,}\n|$) hard_wrap N/A N/A self N/A N/A N/A Grammar for hard wrap linebreak. You don't need to add two
        spaces at the end of a line.
         N/A N/A self linebreak N/A N/A re compile ^ *\n(?!\s*$) N/A N/A self text N/A N/A re compile ^[\s\S]+?(?=[\\<!\[_*`~]|https?://| *\n|$) N/A __init__ N/A N/A self N/A N/A N/A N/A N/A self hard_wrap N/A N/A InlineLexer N/A BaseLexer N/A N/A Inline level lexer for inline grammars. N/A grammar_class InlineGrammar N/A default_rules N/A escape autolink url tag footnote link reflink double_emphasis emphasis code linebreak strikethrough text __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super InlineLexer self __init__ kwargs N/A N/A self links N/A N/A N/A self footnotes N/A N/A N/A self footnote_index 0 N/A N/A self _in_link False N/A N/A self _in_footnote False N/A read N/A N/A self text rules N/A None N/A N/A N/A N/A self _in_footnote N/A footnote rules N/A N/A N/A N/A rules remove footnote N/A N/A N/A N/A super InlineLexer self read text rules N/A parse_escape N/A N/A self m N/A N/A N/A N/A N/A N/A self renderer text N/A N/A m group 1 N/A parse_autolink N/A N/A self m N/A N/A N/A link N/A N/A m group 1 N/A N/A N/A N/A m group 2 @ N/A N/A is_email True N/A N/A is_email False N/A N/A N/A N/A self renderer autolink link is_email N/A parse_url N/A N/A self m N/A N/A N/A link N/A N/A m group 1 N/A N/A self _in_link N/A N/A N/A N/A N/A self renderer text link N/A N/A N/A N/A self renderer autolink link False N/A parse_tag N/A N/A self m N/A N/A N/A text N/A N/A m group 0 N/A lower_text N/A N/A text lower N/A N/A N/A lower_text startswith <a  N/A N/A N/A self _in_link True N/A N/A N/A lower_text startswith </a> N/A N/A N/A self _in_link False N/A N/A N/A N/A self renderer tag text N/A parse_footnote N/A N/A self m N/A N/A N/A key N/A _keyify N/A N/A m group 1 N/A N/A key N/A self footnotes N/A N/A N/A N/A N/A self footnotes N/A key N/A N/A N/A N/A self footnote_index 1 N/A N/A N/A self footnotes N/A key N/A self footnote_index N/A N/A N/A N/A self renderer footnote_ref key N/A self footnote_index N/A parse_link N/A N/A self m N/A N/A N/A N/A N/A self _process_link m N/A N/A m group 2 N/A N/A m group 3 N/A parse_reflink N/A N/A self m N/A N/A N/A key N/A _keyify N/A N/A N/A m group 2 N/A N/A m group 1 N/A N/A key N/A self links N/A N/A N/A ret N/A N/A self links N/A key N/A N/A N/A self _process_link m N/A ret N/A link N/A ret N/A title N/A parse_nolink N/A N/A self m N/A N/A N/A key N/A _keyify N/A N/A m group 1 N/A N/A key N/A self links N/A N/A N/A ret N/A N/A self links N/A key N/A N/A N/A self _process_link m N/A ret N/A link N/A ret N/A title N/A _process_link N/A N/A self m link title N/A None N/A N/A line N/A N/A m group 0 N/A text N/A N/A m group 1 N/A N/A N/A line N/A 0 ! N/A N/A N/A N/A N/A self renderer image link title text N/A N/A N/A self _in_link False N/A N/A N/A N/A self renderer link link title text N/A parse_double_emphasis N/A N/A self m N/A N/A N/A text N/A N/A N/A m group 2 N/A N/A m group 1 N/A N/A N/A N/A self renderer double_emphasis text N/A parse_emphasis N/A N/A self m N/A N/A N/A text N/A N/A N/A m group 2 N/A N/A m group 1 N/A N/A N/A N/A self renderer emphasis text N/A parse_code N/A N/A self m N/A N/A N/A text N/A N/A m group 2 N/A N/A N/A N/A self renderer codespan text N/A parse_linebreak N/A N/A self m N/A N/A N/A N/A N/A N/A self renderer linebreak N/A parse_strikethrough N/A N/A self m N/A N/A N/A text N/A N/A m group 1 N/A N/A N/A N/A self renderer strikethrough text N/A parse_text N/A N/A self m N/A N/A N/A text N/A N/A m group 0 N/A N/A N/A N/A self renderer text text N/A N/A MarkdownWriter N/A object N/A N/A A class for writing Markdown documents. __init__ N/A N/A self N/A N/A N/A N/A self _output N/A StringIO N/A N/A self _list_number 0 N/A N/A self _in_quote False N/A contents N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self _output getvalue rstrip N/A property close N/A N/A self N/A N/A N/A N/A N/A N/A self _output close N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A _write N/A N/A self contents N/A N/A N/A N/A N/A N/A self _output write N/A N/A contents rstrip N/A newline N/A N/A self N/A N/A N/A N/A N/A N/A self _output write N/A N/A self _list_number 0 N/A linebreak N/A N/A self N/A N/A N/A N/A N/A N/A self _output write N/A ensure_newline N/A N/A self n N/A N/A N/A Make sure there are 'n' line breaks at the end. N/A N/A n 0 N/A text N/A N/A N/A N/A N/A self _output getvalue rstrip N/A N/A text N/A N/A N/A N/A self _output N/A StringIO N/A N/A N/A N/A self _output write text N/A N/A N/A N/A self _output write N/A n N/A text N/A N/A N/A self _output getvalue N/A N/A N/A text N/A N/A N/A n 1 N/A N/A N/A text N/A N/A n N/A n N/A heading N/A N/A self text level N/A None N/A N/A N/A 1 level 6 N/A N/A N/A self ensure_newline 2 N/A N/A N/A self text N/A N/A N/A # level text N/A numbered_list_item N/A N/A self text level N/A 0 N/A N/A N/A level 0 N/A N/A N/A self _list_number 1 N/A N/A N/A self list_item text level level bullet N/A str N/A self _list_number suffix .  N/A list_item N/A N/A self text level bullet suffix N/A 0 * N/A N/A N/A level 0 N/A N/A N/A self text N/A N/A N/A N/A level bullet suffix text N/A code_start N/A N/A self lang N/A None N/A N/A N/A lang None N/A N/A lang N/A N/A N/A self text N/A N/A ```{0} format lang N/A N/A N/A self ensure_newline 1 N/A code_end N/A N/A self N/A N/A N/A N/A N/A self ensure_newline 1 N/A N/A N/A self text ``` N/A quote_start N/A N/A self N/A N/A N/A N/A self _in_quote True N/A quote_end N/A N/A self N/A N/A N/A N/A self _in_quote False N/A link N/A N/A self text url N/A N/A N/A N/A N/A self text N/A N/A [{0}]({1}) format text url N/A image N/A N/A self caption url N/A N/A N/A N/A N/A self text N/A N/A ![{0}]({1}) format caption url N/A inline_code N/A N/A self text N/A N/A N/A N/A N/A self text N/A N/A `{0}` format text N/A italic N/A N/A self text N/A N/A N/A N/A N/A self text N/A N/A *{0}* format text N/A bold N/A N/A self text N/A N/A N/A N/A N/A self text N/A N/A **{0}** format text N/A text N/A N/A self text N/A N/A N/A N/A self _in_quote N/A N/A N/A N/A N/A N/A N/A self _output getvalue N/A -1 N/A N/A text N/A >  text N/A N/A N/A self _write text N/A N/A _replace_header_filter N/A N/A filter N/A N/A N/A N/A N/A h1 h2 h3 h4 h5 h6 #  ##  ###  ####  #####  ######  N/A filter N/A _filter_markdown N/A N/A source filters N/A N/A N/A Only keep some Markdown headers from a Markdown string. N/A lines N/A N/A source splitlines N/A headers N/A N/A _replace_header_filter filter N/A filter filters N/A lines N/A line N/A line lines N/A N/A line startswith N/A tuple headers N/A N/A N/A join lines N/A MarkdownFilter N/A object N/A N/A Filter Marakdown contents by keeping a subset of the contents.

    Parameters
    ----------

    keep : str | None or False
        What to keep from Markdown cells. Can be:

        * None or False: don't keep Markdown contents
        * 'all': keep all Markdown contents
        * 'headers': just keep Markdown headers
        * 'h1,h3': just keep headers of level 1 and 3 (can be any combination)

     __init__ N/A N/A self keep N/A None N/A N/A N/A keep None N/A N/A keep all N/A N/A keep headers N/A N/A keep h1,h2,h3,h4,h5,h6 N/A N/A N/A isinstance keep string_types N/A keep all N/A N/A keep N/A N/A keep split , N/A N/A self _keep keep N/A filter N/A N/A self source N/A N/A N/A N/A N/A self _keep N/A N/A N/A N/A N/A N/A self _keep all N/A N/A source N/A _filter_markdown source N/A self _keep N/A source N/A __call__ N/A N/A self source N/A N/A N/A N/A N/A self filter source N/A N/A