Module Expr Str Import alias Import alias Import alias TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body Pass ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Str Num FunctionDef arguments args defaults body Expr Str Return Call NameLoad NameLoad Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str Index Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str Index Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr BoolOpAnd BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad CompareIn Str NameLoad CompareEq NameLoad Str Str Str Return BinOpAdd BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr
N/A N/A 
Win32 utilities.

See also twisted.python.shortcut.

@var O_BINARY: the 'binary' mode flag on Windows, or 0 on other platforms, so it
    may safely be OR'ed into a mask for os.open.
 N/A re N/A exceptions N/A os N/A N/A N/A win32api N/A win32con N/A N/A N/A ImportError N/A N/A twisted.python.runtime platform N/A ERROR_FILE_NOT_FOUND 2 N/A ERROR_PATH_NOT_FOUND 3 N/A ERROR_INVALID_NAME 123 N/A ERROR_DIRECTORY 267 N/A O_BINARY N/A getattr os O_BINARY 0 _determineWindowsError N/A N/A N/A N/A N/A 
    Determine which WindowsError name to export.
     N/A N/A getattr exceptions WindowsError FakeWindowsError N/A FakeWindowsError N/A OSError N/A N/A 
    Stand-in for sometimes-builtin exception on platforms for which it
    is missing.
     N/A N/A WindowsError N/A _determineWindowsError getProgramsMenuPath N/A N/A N/A N/A N/A Get the path to the Programs menu.

    Probably will break on non-US Windows.

    @returns: the filesystem location of the common Start Menu->Programs.
     N/A N/A N/A N/A platform isWinNT N/A N/A C:\Windows\Start Menu\Programs N/A keyname SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders N/A hShellFolders N/A N/A win32api RegOpenKeyEx N/A win32con HKEY_LOCAL_MACHINE keyname 0 N/A win32con KEY_READ N/A N/A N/A N/A win32api RegQueryValueEx hShellFolders Common Programs N/A 0 N/A getProgramFilesPath N/A N/A N/A N/A N/A Get the path to the Program Files folder. N/A keyname SOFTWARE\Microsoft\Windows\CurrentVersion N/A currentV N/A N/A win32api RegOpenKeyEx N/A win32con HKEY_LOCAL_MACHINE keyname 0 N/A win32con KEY_READ N/A N/A N/A N/A win32api RegQueryValueEx currentV ProgramFilesDir N/A 0 N/A N/A _cmdLineQuoteRe N/A N/A re compile (\\*)" N/A _cmdLineQuoteRe2 N/A N/A re compile (\\+)\Z cmdLineQuote N/A N/A s N/A N/A N/A 
    Internal method for quoting a single command-line argument.

    @param s: an unquoted string that you want to quote so that something that
        does cmd.exe-style unquoting will interpret it as a single argument,
        even if it contains spaces.
    @type s: C{str}

    @return: a quoted string.
    @rtype: C{str}
     N/A quote N/A N/A N/A N/A s N/A s N/A " s N/A s " N/A N/A N/A quote N/A N/A _cmdLineQuoteRe2 sub \1\1 N/A N/A _cmdLineQuoteRe sub \1\1\\" s quote N/A quoteArguments N/A N/A arguments N/A N/A N/A 
    Quote an iterable of command-line arguments for passing to CreateProcess or
    a similar API.  This allows the list passed to C{reactor.spawnProcess} to
    match the child process's C{sys.argv} properly.

    @param arglist: an iterable of C{str}, each unquoted.

    @return: a single string, with the given sequence quoted as necessary.
     N/A N/A N/A join N/A N/A cmdLineQuote a N/A a arguments N/A _ErrorFormatter N/A object N/A N/A 
    Formatter for Windows error messages.

    @ivar winError: A callable which takes one integer error number argument
        and returns an L{exceptions.WindowsError} instance for that error (like
        L{ctypes.WinError}).

    @ivar formatMessage: A callable which takes one integer error number
        argument and returns a C{str} giving the message for that error (like
        L{win32api.FormatMessage}).

    @ivar errorTab: A mapping from integer error numbers to C{str} messages
        which correspond to those erorrs (like L{socket.errorTab}).
     __init__ N/A N/A self WinError FormatMessage errorTab N/A N/A N/A N/A self winError WinError N/A N/A self formatMessage FormatMessage N/A N/A self errorTab errorTab N/A fromEnvironment N/A N/A cls N/A N/A N/A 
        Get as many of the platform-specific error translation objects as
        possible and return an instance of C{cls} created with them.
         N/A N/A ctypes WinError N/A N/A N/A ImportError N/A N/A WinError None N/A N/A win32api FormatMessage N/A N/A N/A ImportError N/A N/A FormatMessage None N/A N/A socket errorTab N/A N/A N/A ImportError N/A N/A errorTab None N/A N/A cls WinError FormatMessage errorTab N/A N/A fromEnvironment N/A classmethod fromEnvironment formatError N/A N/A self errorcode N/A N/A N/A 
        Returns the string associated with a Windows error message, such as the
        ones found in socket.error.

        Attempts direct lookup against the win32 API via ctypes and then
        pywin32 if available), then in the error table in the socket module,
        then finally defaulting to C{os.strerror}.

        @param errorcode: the Windows error code
        @type errorcode: C{int}

        @return: The error message string
        @rtype: C{str}
         N/A N/A N/A self winError None N/A N/A N/A N/A N/A self winError errorcode N/A 1 N/A N/A N/A self formatMessage None N/A N/A N/A N/A self formatMessage errorcode N/A N/A N/A self errorTab None N/A N/A result N/A N/A N/A self errorTab get errorcode N/A N/A result None N/A N/A result N/A N/A N/A os strerror errorcode N/A N/A N/A formatError N/A N/A N/A _ErrorFormatter fromEnvironment formatError