Module Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad CompareLtE Call NameLoad NameLoad NameLoad body Return NameLoad orelse Return BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice BinOpSub NameLoad Num Str SubscriptLoad NameLoad Slice Num handlers ExceptHandler body Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareGt Call NameLoad NameLoad NameLoad body If NameLoad body Return BinOpAdd Str SubscriptLoad NameLoad Slice BinOpAdd BinOpSub Call NameLoad NameLoad NameLoad Num orelse Return BinOpAdd SubscriptLoad NameLoad Slice BinOpSub NameLoad Num Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Num Assign NameStore Str While CompareGt NameLoad NameLoad body Assign NameStore Str Assign NameStore BinOpDiv NameLoad Call NameLoad NameLoad AugAssignAdd NameStore Num Assign NameStore ListLoad Str Str Str Str Str Str Return BinOpMod NameLoad TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Str Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad BinOpDiv NameLoad Num Call NameLoad BinOpMod BinOpDiv NameLoad Num Num BinOpMod NameLoad Num Return BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A 
String utility functions.
 safe_repr N/A N/A obj clip N/A None N/A N/A 
    Convert object to string representation, yielding the same result a `repr`
    but catches all exceptions and returns 'N/A' instead of raising the
    exception. Strings may be truncated by providing `clip`.

    >>> safe_repr(42)
    '42'
    >>> safe_repr('Clipped text', clip=8)
    'Clip..xt'
    >>> safe_repr([1,2,3,4], clip=8)
    '[1,2..4]'
     N/A N/A N/A s N/A repr obj N/A N/A N/A clip N/A N/A len s clip N/A N/A s N/A N/A N/A N/A N/A s N/A N/A clip 4 .. N/A s N/A -2 N/A N/A N/A N/A N/A N/A trunc N/A N/A obj max left N/A 0 N/A N/A 
    Convert `obj` to string, eliminate newlines and truncate the string to
    `max` characters. If there are more characters in the string add ``...`` to
    the string. With `left=True`, the string can be truncated at the beginning.

    @note: Does not catch exceptions when converting `obj` to string with
        `str`.

    >>> trunc('This is a long text.', 8)
    This ...
    >>> trunc('This is a long text.', 8, left)
    ...text.
     N/A s N/A str obj N/A s N/A N/A s replace | N/A N/A N/A len s max N/A N/A left N/A N/A N/A ... N/A s N/A N/A N/A N/A len s max 3 N/A N/A N/A N/A s N/A N/A max 3 ... N/A N/A s N/A pp N/A N/A i base N/A 1024 N/A N/A 
    Pretty-print the integer `i` as a human-readable size representation.
     N/A degree 0 N/A pattern %4d     %s N/A N/A i base N/A N/A pattern %7.2f %s N/A i N/A i N/A float base N/A degree 1 N/A scales N/A B KB MB GB TB EB N/A N/A pattern N/A i N/A scales N/A degree N/A pp_timestamp N/A N/A t N/A N/A N/A 
    Get a friendly timestamp represented as a string.
     N/A N/A t None N/A N/A N/A N/A h m s N/A N/A int N/A t 3600 N/A int N/A N/A t 60 60 N/A t 60 N/A N/A %02d:%02d:%05.2f N/A h m s N/A