Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str If Call NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If Call NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad TupleLoad Num Num Num Num body Return Str orelse If CompareIn NameLoad TupleLoad Num Num Num body Return Str orelse If CompareIn NameLoad TupleLoad Num Num Num body Return Str orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot NameLoad body Raise NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list
N/A N/A 
Holds common functionality used by termsaver screens.
 N/A os N/A sys N/A traceback N/A HTMLParser N/A subprocess N/A re is_windows N/A N/A N/A N/A N/A 
    Returns True if the environment is Microsoft Windows.
     N/A N/A N/A sys platform win32 N/A prettify_exception N/A N/A ex N/A N/A N/A 
    Outputs the exception with its stack trace within separator lines.
     N/A N/A 
===================================
Exception: (%s) %s
%s
===================================
 N/A N/A N/A ex __class__ __name__ N/A ex message N/A N/A traceback format_exc N/A get_app_dir N/A N/A N/A N/A N/A 
    Retrieves the termsaver main directory based on current operating system.

    For Windows machines, this should be something like:

        <root>\Documents and Settings\<user>\Application Data	ermsaver

    For Unix machines, it will be:

        /home/<user>/.termsaver/
     N/A N/A is_windows N/A N/A path N/A N/A N/A os path join N/A N/A os environ N/A APPDATA termsaver N/A N/A path N/A N/A N/A os path join N/A N/A os environ N/A HOME .termsaver N/A N/A N/A N/A N/A os path exists path N/A N/A N/A N/A os mkdir path N/A path N/A get_temp_dir N/A N/A N/A N/A N/A 
    Retrieves the temporary based on current operating system.

    For Windows machines, this should be something like:

        <root>\Documents and Settings\<user>\Local Settings\Temp

    For Unix machines, it will be:

        /tmp/

     N/A N/A is_windows N/A N/A path N/A N/A os environ N/A TMP N/A N/A path /tmp N/A path N/A unescape_string N/A N/A escaped_text N/A N/A N/A 
    Unescape strings. This is useful for cases when data that needs to be
    displayed on screen is escaped for HTML or database stuff.

    Additional replacing is taken here, such as some HTML tags:

        * <br>, replaced to 

     N/A unescaped escaped_text N/A N/A N/A unescaped N/A N/A N/A N/A HTMLParser HTMLParser unescape escaped_text N/A unescaped N/A N/A unescaped replace <br> N/A unescaped N/A N/A unescaped replace <br/> N/A unescaped N/A N/A unescaped replace <br /> N/A unescaped N/A N/A unescaped decode string_escape N/A N/A N/A N/A N/A unescaped N/A get_day_suffix N/A N/A day N/A N/A N/A 
    Returns the suffix of the day, such as in 1st, 2nd, ...
     N/A N/A day N/A 1 11 21 31 N/A N/A st N/A N/A N/A day N/A 2 12 22 N/A N/A nd N/A N/A N/A day N/A 3 13 23 N/A N/A rd N/A N/A th N/A execute_shell N/A N/A cmd ignore_errors N/A False N/A N/A 
    Simple routine to execute shell commands.
    If `ignore_errors` is false (default) errors here will be thrown, and
    must be treated individually, to ensure proper message to end-user.

    The `cmd` argument must be an array, formatted for subprocess.Popen.
    If you are not sure on how to do that, just use:  shlex.split(string).
     N/A N/A N/A p N/A N/A subprocess Popen cmd stdin N/A subprocess PIPE stdout N/A subprocess PIPE close_fds True N/A N/A out __ N/A N/A p communicate N/A N/A N/A Exception N/A e N/A N/A N/A ignore_errors N/A N/A e N/A N/A N/A out rstrip N/A strip_html N/A N/A text N/A N/A N/A 
    Simple regex that cleans a string of any HTML tags (for terminal output,
    there isn't much sense to have them printed anyway).
     N/A N/A N/A re sub <[^<]+?> text N/A