Module Import alias identifier ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareLtE Call NameLoad NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad Str attr BinOpAdd SubscriptLoad NameLoad Slice Num ListLoad Str SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If CompareLtE NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Yield Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr With Call NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad ExceptHandler type NameLoad name NameStore body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A argparse2 argparse contextlib contextmanager N/A logging N/A os N/A sys textwrap dedent traceback format_exc N/A colorlog openrcv.scripts.argparse parse_log_level HelpRequested UsageException N/A EXIT_STATUS_SUCCESS 0 N/A EXIT_STATUS_FAIL 1 N/A EXIT_STATUS_USAGE_ERROR 2 N/A PROG_NAME N/A N/A N/A os path basename N/A N/A sys argv N/A 0 N/A log N/A N/A logging getLogger PROG_NAME DisplayNameFilter N/A object N/A N/A A logging filter that sets display_name. filter N/A N/A self record N/A N/A N/A N/A record display_name N/A record name N/A True N/A N/A TruncatedDisplayNameFilter N/A object N/A N/A A logging filter that sets a truncated display_name. filter N/A N/A self record N/A N/A N/A parts N/A N/A N/A record name split . N/A N/A N/A len parts 3 N/A N/A display_name N/A record name N/A N/A display_name N/A N/A . join N/A N/A parts N/A 2 N/A . N/A parts N/A -1 N/A N/A record display_name display_name N/A True N/A N/A get_filter N/A N/A level N/A N/A N/A N/A level N/A logging DEBUG N/A N/A cls DisplayNameFilter N/A N/A cls TruncatedDisplayNameFilter N/A N/A cls N/A make_formatter N/A N/A N/A N/A N/A format_string %(bg_black)s%(log_color)slog: %(display_name)s: [%(levelname)s]%(reset)s %(message)s N/A colors N/A colorlog default_log_colors N/A N/A colors N/A DEBUG white N/A formatter N/A N/A colorlog ColoredFormatter format_string log_colors colors N/A formatter N/A make_log_handler N/A N/A level file_ N/A None N/A N/A N/A file_ None N/A N/A file_ N/A sys stderr N/A handler N/A N/A logging StreamHandler file_ N/A filter_ N/A get_filter level N/A N/A N/A handler addFilter filter_ N/A formatter N/A make_formatter N/A N/A N/A handler setFormatter formatter N/A handler N/A log_config N/A N/A level file_ N/A None N/A N/A 
    A context manager to configure logging and then undo the configuration.

    Undoing the configuration is useful for testing, since otherwise
    many log handlers might accumulate during the course of testing,
    due to successive calls to this method.

    Arguments:

      level: lowest logging level to log.
      file_: the file object to use for logging (e.g. sys.stderr).

     N/A N/A level None N/A N/A level LOG_LEVEL_DEFAULT N/A root N/A N/A logging getLogger N/A already_configured N/A N/A root hasHandlers N/A handler N/A make_log_handler level file_ file_ N/A N/A N/A root addHandler handler N/A N/A already_configured N/A N/A N/A N/A root setLevel level N/A N/A N/A log debug N/A root logger level set to: %r N/A N/A logging getLevelName level N/A N/A N/A log debug a logging handler was added N/A N/A N/A N/A N/A root removeHandler handler N/A contextmanager make_usage_error N/A N/A msg help_options N/A N/A N/A text N/A N/A N/A dedent     Command-line usage error: {!s}

    Pass {!s} for help documentation and available options. format msg help_options N/A text N/A print_usage_error N/A N/A parser msg file_ N/A None N/A N/A N/A file_ None N/A N/A file_ N/A sys stderr N/A N/A N/A len N/A sys argv 1 N/A N/A N/A N/A parser print_help N/A N/A N/A parser print_usage file_ N/A text N/A make_usage_error msg N/A N/A N/A parser option_help display  or  N/A N/A N/A log error text N/A non_exiting_main N/A N/A parser argv stdout log_file N/A None None N/A N/A 
    Run the program, and return the exit status without exiting.

    Arguments:
      parser: an argparse.ArgumentParser object.

     N/A args N/A argv N/A 1 N/A log_level N/A N/A parser safe_get_log_level args N/A N/A stdout None N/A N/A stdout N/A sys stdout N/A N/A log_config level log_level file_ log_file N/A N/A N/A N/A log debug N/A argv: %r argv N/A N/A N/A ns N/A N/A parser parse_args args args N/A N/A N/A log debug N/A ns: %r ns N/A N/A N/A command N/A ns run_command N/A N/A N/A AttributeError N/A N/A N/A HelpRequested parser parser N/A output N/A command ns stdout stdout N/A N/A output None N/A N/A N/A N/A stdout write output N/A status EXIT_STATUS_SUCCESS N/A N/A N/A HelpRequested N/A exc N/A N/A parser N/A exc parser N/A N/A N/A parser print_help file stdout N/A status EXIT_STATUS_SUCCESS N/A N/A UsageException N/A exc N/A N/A N/A err_args parser N/A N/A exc args N/A exc parser N/A N/A N/A len err_args 1 N/A N/A print_usage_error parser N/A err_args N/A 0 file_ log_file N/A status EXIT_STATUS_USAGE_ERROR N/A status N/A main N/A N/A parser argv N/A None N/A N/A N/A argv None N/A N/A argv N/A sys argv N/A status N/A non_exiting_main parser argv N/A N/A N/A sys exit status N/A