Module Expr Str TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier Import alias FunctionDef arguments args NameParam NameParam defaults Lambda arguments args NameParam defaults BinOpAdd NameLoad Num body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameStore NameLoad orelse If CompareEq NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore IfExp CompareEq Call NameLoad NameLoad Num Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str Str If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
Utility module.
 N/A N/A shlex quote shell_quote N/A N/A N/A ImportError N/A pipes quote shell_quote N/A subprocess discrete_ranges N/A N/A values succ N/A N/A N/A N/A x N/A N/A x 1 N/A N/A Cluster given values into a sequence of discrete ranges.

    :param values: Iterable of values
    :param succ: Successor function; default is 'increment by 1'

    :return: List of tuples describing ranges: [(begin, end)]
             where begin <= end, as per ``succ`` function
     N/A ranges N/A N/A last None N/A x N/A sorted values N/A N/A N/A last None N/A N/A start last x N/A N/A N/A x N/A succ last N/A N/A last x N/A N/A N/A N/A ranges append N/A start last N/A last None N/A N/A last None N/A N/A N/A N/A ranges append N/A start last N/A ranges N/A shell N/A N/A prog N/A args kwargs N/A N/A Runs a shell command.

    Positional arguments are used as command arguments.
    Keyword arguments are used as flags.

    :return: Output of the command (stdout)
     N/A cmd_parts N/A prog N/A N/A N/A cmd_parts extend N/A map shell_quote args N/A N/A flag value N/A N/A kwargs iteritems N/A N/A prefix N/A N/A N/A len flag 1 - -- N/A N/A N/A cmd_parts append N/A prefix N/A N/A flag replace _ - N/A N/A value N/A value True N/A N/A N/A N/A cmd_parts append N/A shell_quote value N/A cmd N/A N/A join cmd_parts N/A process N/A N/A subprocess Popen cmd shell True stdout N/A subprocess PIPE N/A N/A out _ N/A N/A process communicate N/A out N/A