Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num TryExcept body ImportFrom alias Assign NameStore NameLoad Import alias identifier Import alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr NameLoad Lambda arguments args NameParam defaults Call NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Assign NameStore ListLoad While NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad If NameLoad body Expr Call NameLoad Call NameLoad NameLoad Return handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body If CompareEq Call NameLoad NameLoad NameLoad body Pass orelse If CompareNotEq Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If CompareEq Call NameLoad NameLoad NameLoad body Pass orelse If CompareNotEq Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body AugAssignSub AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Raise Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad NameLoad attr If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Return TupleLoad Call AttributeLoad NameLoad attr NameLoad Str NameLoad ListComp Call AttributeLoad NameLoad attr Num comprehension NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return BoolOpOr CompareEq NameLoad NameLoad CompareIn AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults Str Return NameLoad decorator_list decorator_list If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults Str TryExcept body With Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Num NameStore body Return AttributeLoad NameLoad attr handlers ExceptHandler body Return IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore BinOpMod NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body TryExcept body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Num comprehension NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad NameLoad Assign NameStore ListComp BinOpAdd BinOpMult Str NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore ListLoad Str Str
N/A N/A 
Internal utility functions.

`htmlentitydecode` came from here:
    http://wiki.python.org/moin/EscapingHtml
 __future__ print_function N/A contextlib N/A re N/A sys N/A textwrap N/A time N/A socket N/A PY_3_OR_HIGHER N/A N/A sys version_info N/A 3 0 N/A N/A html.entities name2codepoint N/A unichr chr N/A urllib.request urllib2 N/A urllib.parse urlparse N/A N/A N/A ImportError N/A htmlentitydefs name2codepoint N/A urllib2 N/A urlparse htmlentitydecode N/A N/A s N/A N/A N/A N/A N/A re sub N/A &(%s); N/A N/A | join name2codepoint N/A N/A N/A m N/A N/A unichr N/A name2codepoint N/A N/A N/A m group 1 s N/A smrt_input N/A N/A globals_ locals_ ps1 ps2 N/A >>>  ...  N/A N/A inputs N/A N/A True N/A N/A inputs N/A N/A prompt ps2 N/A N/A prompt ps1 N/A N/A N/A inputs append N/A input prompt N/A N/A N/A ret N/A eval N/A N/A join inputs globals_ locals_ N/A ret N/A N/A N/A print N/A str ret N/A N/A N/A N/A SyntaxError N/A N/A N/A printNicely N/A N/A string N/A N/A N/A N/A hasattr N/A sys stdout buffer N/A N/A N/A N/A N/A N/A sys stdout buffer write N/A N/A string encode utf8 N/A N/A print N/A N/A N/A N/A N/A sys stdout buffer flush N/A N/A N/A N/A sys stdout flush N/A N/A N/A print N/A N/A string encode utf8 N/A actually_bytes N/A N/A stringy N/A N/A N/A PY_3_OR_HIGHER N/A N/A N/A N/A type stringy bytes N/A N/A N/A N/A N/A N/A type stringy str N/A N/A stringy N/A str stringy N/A N/A N/A type stringy str N/A N/A stringy N/A N/A stringy encode utf-8 N/A N/A N/A N/A type stringy str N/A N/A N/A N/A N/A N/A type stringy unicode N/A N/A stringy N/A str stringy N/A N/A N/A type stringy unicode N/A N/A stringy N/A N/A stringy encode utf-8 N/A stringy N/A err N/A N/A msg N/A N/A N/A N/A print msg file N/A sys stderr N/A Fail N/A object N/A N/A A class to count fails during a repetitive task.

    Args:
        maximum: An integer for the maximum of fails to allow.
        exit: An integer for the exit code when maximum of fail is reached.

    Methods:
        count: Count a fail, exit when maximum of fails is reached.
        wait: Same as count but also sleep for a given time in seconds.
     __init__ N/A N/A self maximum exit N/A 10 1 N/A N/A N/A self i maximum N/A N/A self exit exit N/A count N/A N/A self N/A N/A N/A N/A self i 1 N/A N/A N/A self i 0 N/A N/A N/A err Too many consecutive fails, exiting. N/A N/A SystemExit N/A self exit N/A wait N/A N/A self delay N/A 0 N/A N/A N/A N/A self count N/A N/A delay 0 N/A N/A N/A N/A time sleep delay N/A N/A find_links N/A N/A line N/A N/A N/A Find all links in the given line. The function returns a sprintf style
    format string (with %s placeholders for the links) and a list of urls. N/A l N/A N/A line replace % %% N/A regex (https?://[^ )]+) N/A N/A N/A N/A re sub regex %s l N/A N/A N/A m group 1 N/A m N/A N/A re finditer regex l N/A follow_redirects N/A N/A link sites N/A None N/A N/A Follow directs for the link as long as the redirects are on the given
    sites and return the resolved link. follow N/A N/A url N/A N/A N/A N/A N/A sites None N/A N/A N/A N/A urlparse urlparse url hostname sites N/A RedirectHandler N/A N/A urllib2 HTTPRedirectHandler N/A __init__ N/A N/A self N/A N/A N/A N/A self last_url None N/A redirect_request N/A N/A self req fp code msg hdrs newurl N/A N/A N/A N/A self last_url newurl N/A N/A N/A follow newurl N/A N/A None N/A r N/A N/A N/A urllib2 HTTPRedirectHandler redirect_request self req fp code msg hdrs newurl N/A N/A r get_method N/A N/A N/A N/A HEAD N/A r N/A N/A N/A N/A N/A follow link N/A N/A link N/A redirect_handler N/A RedirectHandler N/A opener N/A N/A urllib2 build_opener redirect_handler N/A req N/A N/A urllib2 Request link N/A N/A req get_method N/A N/A N/A N/A HEAD N/A N/A N/A N/A N/A contextlib closing N/A N/A opener open req timeout 1 site N/A N/A N/A site url N/A N/A N/A N/A N/A N/A redirect_handler last_url N/A redirect_handler last_url link N/A expand_line N/A N/A line sites N/A N/A N/A Expand the links in the line for the given sites. N/A N/A N/A l N/A N/A line strip N/A N/A msg_format links N/A find_links l N/A args N/A tuple N/A N/A follow_redirects l sites N/A l links N/A line N/A msg_format args N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A err N/A expanding line %s failed due to %s N/A line N/A unicode e N/A N/A N/A N/A N/A line N/A parse_host_list N/A N/A list_of_hosts N/A N/A N/A Parse the comma separated list of hosts. N/A p N/A set N/A N/A N/A m group 1 N/A m N/A N/A re finditer \s*([^,\s]+)\s*,?\s* list_of_hosts N/A p N/A align_text N/A N/A text left_margin max_width N/A 17 160 N/A N/A lines N/A N/A line N/A N/A text split N/A N/A temp_lines N/A N/A textwrap wrap line N/A max_width left_margin N/A temp_lines N/A N/A N/A left_margin line N/A line temp_lines N/A N/A N/A lines append N/A N/A join temp_lines N/A ret N/A N/A join lines N/A N/A N/A ret lstrip N/A N/A __all__ N/A htmlentitydecode smrt_input