/usr/lib/python3/dist-packages/twisted/python/__pycache__
NameSizeModeActions
compat.cpython-310.pyc153980644editdlrm
components.cpython-310.pyc143640644editdlrm
constants.cpython-310.pyc4680644editdlrm
context.cpython-310.pyc46570644editdlrm
deprecate.cpython-310.pyc252210644editdlrm
failure.cpython-310.pyc189600644editdlrm
fakepwd.cpython-310.pyc72920644editdlrm
filepath.cpython-310.pyc520500644editdlrm
formmethod.cpython-310.pyc127170644editdlrm
htmlizer.cpython-310.pyc35820644editdlrm
lockfile.cpython-310.pyc51380644editdlrm
log.cpython-310.pyc230160644editdlrm
logfile.cpython-310.pyc104590644editdlrm
modules.cpython-310.pyc254690644editdlrm
monkey.cpython-310.pyc23150644editdlrm
procutils.cpython-310.pyc13890644editdlrm
randbytes.cpython-310.pyc37350644editdlrm
rebuild.cpython-310.pyc55780644editdlrm
reflect.cpython-310.pyc191270644editdlrm
release.cpython-310.pyc15250644editdlrm
roots.cpython-310.pyc89330644editdlrm
runtime.cpython-310.pyc56170644editdlrm
sendmsg.cpython-310.pyc25800644editdlrm
shortcut.cpython-310.pyc24640644editdlrm
syslog.cpython-310.pyc33680644editdlrm
systemd.cpython-310.pyc30510644editdlrm
text.cpython-310.pyc42690644editdlrm
threadable.cpython-310.pyc35200644editdlrm
threadpool.cpython-310.pyc105020644editdlrm
url.cpython-310.pyc2790644editdlrm
urlpath.cpython-310.pyc92820644editdlrm
usage.cpython-310.pyc286350644editdlrm
util.cpython-310.pyc279390644editdlrm
versions.cpython-310.pyc3560644editdlrm
win32.cpython-310.pyc48410644editdlrm
zippath.cpython-310.pyc91460644editdlrm
zipstream.cpython-310.pyc88260644editdlrm
_appdirs.cpython-310.pyc8620644editdlrm
_inotify.cpython-310.pyc25800644editdlrm
_pydoctor.cpython-310.pyc57500644editdlrm
_release.cpython-310.pyc181330644editdlrm
_shellcomp.cpython-310.pyc188550644editdlrm
_textattributes.cpython-310.pyc106420644editdlrm
_tzhelper.cpython-310.pyc33850644editdlrm
_url.cpython-310.pyc2690644editdlrm
__init__.cpython-310.pyc5460644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/__pycache__/win32.cpython-310.pyc (4841B)
o ¯bºã@sòUdZddlZddlZddlmZddlmZdZdZdZ dZ e ed dƒZ Gd d „d e ƒZeed d ddƒddd ƒzeZe ed<Wn eyLeZYnweed d ddƒdddƒe d¡Ze d¡Zdd„Zdd„ZGdd„dƒZe ¡jZdS)z¸ 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)ÚVersion)ÚdeprecatedModuleAttributeééé{i ÚO_BINARYc@seZdZdZdS)ÚFakeWindowsErrorz\ Stand-in for sometimes-builtin exception on platforms for which it is missing. N)Ú__name__Ú __module__Ú __qualname__Ú__doc__©r r ú6/usr/lib/python3/dist-packages/twisted/python/win32.pyrsrÚTwistedéz9Catch OSError and check presence of 'winerror' attribute.ztwisted.python.win32Ú WindowsErrorz(\\*)"z(\\+)\ZcCsDd|vsd|vsd|vs|dkrdpd}|t dt d|¡¡|S)aL 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} ú ú ú"Úz\1\1z\1\1\\")Ú_cmdLineQuoteRe2ÚsubÚ_cmdLineQuoteRe)ÚsÚquoter r rÚ cmdLineQuote>s( ÿþÿrcCsd dd„|Dƒ¡S)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 arguments: an iterable of C{str}, each unquoted. @return: a single string, with the given sequence quoted as necessary. rcSsg|]}t|ƒ‘qSr )r)Ú.0Úar r rÚ \sz"quoteArguments..)Újoin)Ú argumentsr r rÚquoteArgumentsRs r!c@s,eZdZdZdd„Zedd„ƒZdd„ZdS) Ú_ErrorFormattera{ Formatter for Windows error messages. @ivar winError: A callable which takes one integer error number argument and returns a L{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 U{win32api.FormatMessage}). @ivar errorTab: A mapping from integer error numbers to C{str} messages which correspond to those erorrs (like I{socket.errorTab}). cCs||_||_||_dS)N)ÚwinErrorÚ formatMessageÚerrorTab)ÚselfÚWinErrorÚ FormatMessager%r r rÚ__init__ps z_ErrorFormatter.__init__cCs„zddlm}Wn tyd}Ynwzddlm}Wn ty'd}Ynwzddlm}Wn ty;d}Ynw||||ƒS)z˜ Get as many of the platform-specific error translation objects as possible and return an instance of C{cls} created with them. r)r'N)r()r%)Úctypesr'Ú ImportErrorÚwin32apir(Úsocketr%)Úclsr'r(r%r r rÚfromEnvironmentus  ÿ ÿ ÿ z_ErrorFormatter.fromEnvironmentcCsV|jdur | |¡jS|jdur| |¡S|jdur&|j |¡}|dur&|St |¡S)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)r#Ústrerrorr$r%ÚgetÚos)r&Ú errorcodeÚresultr r rÚ formatError‰s       z_ErrorFormatter.formatErrorN)r r r r r)Ú classmethodr/r5r r r rr"_s   r")r r2ÚreÚ incrementalrÚtwisted.python.deprecaterÚERROR_FILE_NOT_FOUNDÚERROR_PATH_NOT_FOUNDÚERROR_INVALID_NAMEÚERROR_DIRECTORYÚgetattrrÚOSErrorrrÚ__annotations__Ú NameErrorÚcompilerrrr!r"r/r5r r r rÚsD     ü ÿ ü   D