Module Import alias Import alias Import alias Assign NameStore IfExp CompareEq AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str If CompareGtE AttributeLoad NameLoad attr TupleLoad Num body Return Call NameLoad NameLoad TryExcept body If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If Call NameLoad NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body For NameStore NameLoad body TryExcept body Return Call NameLoad NameLoad NameLoad keyword Str handlers ExceptHandler body Pass Return Call NameLoad NameLoad keyword Str decorator_list
N/A N/A os N/A locale N/A sys N/A _encoding N/A N/A N/A sys platform darwin utf-8 N/A N/A locale getpreferredencoding N/A _fallback_encodings N/A utf-8 cp1252 unicode_from_os N/A N/A e N/A N/A N/A 
    This is needed as some exceptions coming from the OS are
    already encoded and so just calling unicode(e) will result
    in an UnicodeDecodeError as the string isn't in ascii form.

    :param e:
        The exception to get the value of

    :return:
        The unicode version of the exception message
     N/A N/A N/A sys version_info N/A 3 N/A N/A N/A str e N/A N/A N/A N/A isinstance e Exception N/A N/A e N/A N/A e args N/A 0 N/A N/A isinstance e unicode N/A N/A e N/A N/A isinstance e int N/A N/A e N/A str e N/A N/A unicode e _encoding N/A N/A N/A UnicodeDecodeError N/A N/A encoding _fallback_encodings N/A N/A N/A N/A N/A unicode e encoding errors strict N/A N/A N/A N/A N/A N/A unicode e errors replace N/A