module documentation
Win32 utilities.
See also twisted.python.shortcut.
Exception |
|
Stand-in for sometimes-builtin exception on platforms for which it is missing. |
Function | cmd |
Internal method for quoting a single command-line argument. |
Function | quote |
Quote an iterable of command-line arguments for passing to CreateProcess or a similar API. This allows the list passed to reactor.spawnProcess to match the child process's sys.argv properly. |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | O |
the 'binary' mode flag on Windows, or 0 on other platforms, so it may safely be OR'ed into a mask for os.open. |
Variable | format |
Undocumented |
Class | _ |
Formatter for Windows error messages. |
Variable | _cmd |
Undocumented |
Variable | _cmd |
Undocumented |
Internal method for quoting a single command-line argument.
Parameters | |
s:str | 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. |
Returns | |
str | a quoted string. |
Quote an iterable of command-line arguments for passing to CreateProcess or a similar API. This allows the list passed to reactor.spawnProcess to match the child process's sys.argv properly.
Parameters | |
arguments | an iterable of str, each unquoted. |
Returns | |
a single string, with the given sequence quoted as necessary. |