/snap/core24/1643/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1643/usr/lib/python3.12/__pycache__/os.cpython-312.pyc (43474B)
Цij dZddlZddlZddlZddlmZeee Z ejZ gdZ dZdZde vrIdZdZdd l dd lmZe j)d ddlZ dd lmZddlZe j3ee[nUd e vrId ZdZdd l dd lmZe j)d ddlZddlZe j3ee[ dd lmZnedeej8d<ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%[ edre&Z'dZ(e)Z*e(dde(dde(dde(dde(dde(dde(d d!e(d"d#e(d$d%e(d&d'e(d(d)e(d*d+e(d,d-e(d.d/e(d.d0e(d1de*Z+e)Z*e(dde*Z,e)Z*e(d2d3e(d4de(d5de(d6d7e(d6d8e(d9d:e*j[ee(d;d<e(d=de(d>de(d?d@edAredBr e(dCdAe*Z.e)Z*e(dde(dde(dde(dDdEe(dFdedGr e(dHde(dde(dIde(dJde(dde(d1de(dKde*Z/[*[['[(dZ0dLZ1dMZ2ddOZ3dPZ4dQZ5e j3gdRddSZ6e j)dTe7ehe+kr#e8ehe.krddNddUdVZ9dWZ:e j)dXdYZ;dZZd]Z?d^Z@e j3gd_dd`ZAddaZBddblmCZCmDZDGdcddeCZEdeZFeFZG[FddfZHed k7ZIe j3dgeIr/dhZJeEeGjeJeLeJeLZM[JddiZNe j3djdkZOeO\ZPZQ[OedlrKedmsCednr;dZRdLxZSZTe j3gdodpZUdqZVdrZWdsZXdtZYe j3gduedmrdvZZdwZ[e j3dxdygedzrd{Z\d|Z]e j3d}d~gejdk7rddZ_GddZ`e j)dddZadZbeds ebZcdec_dGddejZfed k(rGddZgdZhyy#e$rYwxYw#e$rYwxYw#e$rYJwxYw#e$rY&wxYw)aNOS routines for NT or Posix depending on what system we're on. This exports: - all functions from posix or nt, e.g. unlink, stat, etc. - os.path is either posixpath or ntpath - os.name is either 'posix' or 'nt' - os.curdir is a string representing the current directory (always '.') - os.pardir is a string representing the parent directory (always '..') - os.sep is the (or a most common) pathname separator ('/' or '\\') - os.extsep is the extension separator (always '.') - os.altsep is the alternate pathname separator (None or '/') - os.pathsep is the component separator used in $PATH etc - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n') - os.defpath is the default search path for executables - os.devnull is the file path of the null device ('/dev/null', etc.) Programs that import and use 'os' stand a better chance of being portable between different platforms. Of course, they must then only use functions that are defined by all platforms (e.g., unlink and opendir), and leave all pathname manipulation to os.path (e.g., split and join). N)_check_methods)altsepcurdirpardirseppathseplinesepdefpathnamepathdevnullSEEK_SETSEEK_CURSEEK_ENDfsencodefsdecode get_exec_pathfdopenextsepc|tvSN)globals)r s /usr/lib/python3.12/os.py_existsr)s 79 c t|jS#t$r+t|Dcgc] }|ddk7s |ncc}wc}cYSwxYw)Nr_)list__all__AttributeErrordir)modulens r_get_exports_listr$,sG7FNN## 7v;6a!A$#+6667sA  AA A  A posix )*)_exitr()_have_functionsntz zno os specific module foundzos.path)rrrrr rrr r)c`|tvr&|tvrtjt|yyyr)_globalsr)_setadd)strfns r_addr1hs' (N!7 HHXb\ ""8NrHAVE_FACCESSATaccess HAVE_FCHMODATchmod HAVE_FCHOWNATchown HAVE_FSTATATstatHAVE_FUTIMESATutime HAVE_LINKATlink HAVE_MKDIRATmkdir HAVE_MKFIFOATmkfifo HAVE_MKNODATmknod HAVE_OPENATopenHAVE_READLINKATreadlink HAVE_RENAMEATrenameHAVE_SYMLINKATsymlink HAVE_UNLINKATunlinkrmdirHAVE_UTIMENSAT HAVE_FCHDIRchdir HAVE_FCHMOD HAVE_FCHOWNHAVE_FDOPENDIRlistdirscandir HAVE_FEXECVEexecveHAVE_FTRUNCATEtruncate HAVE_FUTIMENS HAVE_FUTIMESHAVE_FPATHCONFpathconfstatvfsfstatvfs HAVE_FSTATVFS HAVE_LCHFLAGSchflags HAVE_LCHMODlchown HAVE_LCHOWN HAVE_LUTIMES HAVE_LSTAT MS_WINDOWSFctj|\}}|stj|\}}|rQ|rOtj|s: t||t }t |trtt d}||k(ry t||y#t$rYEwxYw#t$r|rtj|sYywxYw)amakedirs(name [, mode=0o777][, exist_ok=False]) Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmost) will be created if it does not exist. If the target directory already exists, raise an OSError if exist_ok is False. Otherwise no exception is raised. This is recursive. )exist_okASCIIN) r splitexistsmakedirsFileExistsErrorr isinstancebytesr?OSErrorisdir)r modermheadtailcdirs rrqrqsD!JD$ ZZ% d T[[.  TH - dE ")D 4<  dD    tzz$/  0s$ B B# B B #!CCct|tj|\}}|stj|\}}|r.|r+ t|tj|\}}|r|r)yyyy#t$rYywxYw)aremovedirs(name) Super-rmdir; remove a leaf directory and all empty intermediate ones. Works like rmdir except that, if the leaf directory is successfully removed, directories corresponding to rightmost path segments will be pruned away until either the whole path is consumed or an error occurs. Errors during this latter phase are ignored -- they generally mean that a directory was not empty. N)rNr roru)r rxrys r removedirsr|sx $KD!JD$ ZZ% d 4  $KZZ% d 4$4$   s A// A;:A;ctj|\}}|r"|r tj|s t|t ||tj|\}}|r|r t |yyy#t $rYywxYw)a<renames(old, new) Super-rename; create directories as necessary and delete any left empty. Works like rename, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned until either the whole path is consumed or a nonempty directory is found. Note: this function can fail with the new directory structure made if you lack permissions needed to unlink the leaf directory or file. N)r rorprqrIr|ru)oldnewrxrys rrenamesrstCJD$ T[[. 3CJD$   t t   s& A44 B?B)rqr|rc#HKtjd||||t|g}tjtj }}|r|j }t|tr|'g}g}g} t|} d} | 5 t| } | j}|r|j| jn|j| j|s8|r6|rd}n | j!}| }|r| j| jyy#t$r} ||| Yd} ~ d} ~ wwxYw#t$rYnHwxYw#t$r} ||| d} Yd} ~ n*d} ~ wwxYw#t$rd}YwxYw#t$rd}YwxYwdddn #1swYnxYw| r`|r=|||ft#|D]'}|||}|s ||r|j|)n5|j|||ft#| D]}|j||r֐w)a& Directory tree generator. For each directory in the directory tree rooted at top (including top itself, but excluding '.' and '..'), yields a 3-tuple dirpath, dirnames, filenames dirpath is a string, the path to the directory. dirnames is a list of the names of the subdirectories in dirpath (including symlinks to directories, and excluding '.' and '..'). filenames is a list of the names of the non-directory files in dirpath. Note that the names in the lists are just names, with no path components. To get a full path (which begins with top) to a file or directory in dirpath, do os.path.join(dirpath, name). If optional arg 'topdown' is true or not specified, the triple for a directory is generated before the triples for any of its subdirectories (directories are generated top down). If topdown is false, the triple for a directory is generated after the triples for all of its subdirectories (directories are generated bottom up). When topdown is true, the caller can modify the dirnames list in-place (e.g., via del or slice assignment), and walk will only recurse into the subdirectories whose names remain in dirnames; this can be used to prune the search, or to impose a specific order of visiting. Modifying dirnames when topdown is false has no effect on the behavior of os.walk(), since the directories in dirnames have already been generated by the time dirnames itself is generated. No matter the value of topdown, the list of subdirectories is retrieved before the tuples for the directory and its subdirectories are generated. By default errors from the os.scandir() call are ignored. If optional arg 'onerror' is specified, it should be a function; it will be called with one argument, an OSError instance. It can report the error to continue with the walk, or raise the exception to abort the walk. Note that the filename is available as the filename attribute of the exception object. By default, os.walk does not follow symbolic links to subdirectories on systems that support them. In order to get this functionality, set the optional argument 'followlinks' to true. Caution: if you pass a relative pathname for top, don't change the current working directory between resumptions of walk. walk never changes the current directory, and assumes that the client doesn't either. Example: import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print(root, "consumes ") print(sum(getsize(join(root, name)) for name in files), end=" ") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories zos.walkNFT)sysauditfspathr islinkjoinpoprstuplerVrunext StopIterationis_dirappendr is_symlinkreversed)toptopdownonerror followlinksstackrrdirsnondirs walk_dirs scandir_iterrorcontentryr walk_intordirnamenew_paths rwalkrs@xIIigw < C[ME;; DF iik c5 !I    J  ) 5  $Z 0#"\\^F KK +NN5::.6#$( /).)9)9);J )3N  !((4Q1 " "  )*D ##F#$ '/*/J /C) 5) 5) 5T   tW$ $#D> +W- fX&6LL* + LL#tW- .$Y/ ' X& 'i sA3H"6 DH"F D<FE-&AF)E>9!FH" D9% D4/H"4D99H"< EE FEE  E* E% F%E**F- E;8F:E;;F> F  F F  F H"F!5H"A H"rfollow_symlinksdir_fdc#Ktjd|||||t|}|st|d|}t |t t z|} |s>tjjrEtj|t|r&t||t|t|||Ed{t|y7#t|wxYww)aDirectory tree generator. This behaves exactly like walk(), except that it yields a 4-tuple dirpath, dirnames, filenames, dirfd `dirpath`, `dirnames` and `filenames` are identical to walk() output, and `dirfd` is a file descriptor referring to the directory `dirpath`. The advantage of fwalk() over walk() is that it's safe against symlink races (when follow_symlinks is False). If dir_fd is not None, it should be a file descriptor open to a directory, and top should be relative; top will then be relative to that directory. (dir_fd is always supported for fwalk.) Caution: Since fwalk() yields file descriptors, those are only valid until the next iteration step, so you should dup() them if you want to keep them for a longer period. Example: import os for root, dirs, files, rootfd in os.fwalk('python/Lib/email'): print(root, "consumes", end="") print(sum(os.stat(name, dir_fd=rootfd).st_size for name in files), end="") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories zos.fwalkFrrN)rrrr9rEO_RDONLY O_NONBLOCKstS_ISDIRst_moder samestat_fwalkrsrtclose)rrrrrorig_sttopfds rfwalkrsB *c7G_fMSk3fEGS(Z/? BJJw$?$(MM'4;$G!%je.D")7OEEE %LE %Ls1ACA!C3C4C8 CC CCc #Kt|}g}g}|s|rdng} |D]b} | j} |r t| } | jr%|j | | #| j | n|j | d|r||||f| |n t|| D]} |s,|rt| |d} n| J| \} } | jd} t| ttz|} |stj t| r.tj|| }t| |||||Ed{t!| |s ||||fyy#t $r6 | j r|j | n#t $rYnwxYwYqwxYw#t $r}|||Yd}~d}~wwxYw7#t!| wxYww)NF)rr)rr)rVr rrrrurzipr9rErrr rrrr)rtoppathisbytesrrrrrrentriesrr rdirfderrdirpaths rrrs U^ !_$" E::D~ <<>KK%*u-NN4( & 4%/ /#ODT71C D &"&tE5"Q&222&* e"'**U*"CT8j#8G  "dmmGT%[&I"ii6G%eWg&-w IIIe ) ,4%/ /C '')t,  * &CL Ie s6GAE?GAF'A F41F22F46G F!E;:F; FFFF G FG F/ F*$G*F//G2F44 GGrct||y)zpexecl(file, *args) Execute the executable file with argument list args, replacing the current process. N)execvfileargss rexeclrs  $rc.|d}t||dd|y)zexecle(file, *args, env) Execute the executable file with argument list args and environment env, replacing the current process. N)rXrrenvs rexecler&s r(C 4crC rct||y)zexeclp(file, *args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. N)execvprs rexeclpr.s  4rc.|d}t||dd|y)zexeclpe(file, *args, env) Execute the executable file (which is searched for along $PATH) with argument list args and environment env, replacing the current process. rN)execvpers rexeclper5s r(C D$s)S!rct||y)zexecvp(file, args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. args may be a list or tuple of strings. N_execvpers rrr>s  T4rct|||y)zexecvpe(file, args, env) Execute the executable file (which is searched for along $PATH) with argument list args and environment env, replacing the current process. args may be a list or tuple of strings. Nrrs rrrFs T4r)rrrrrrc| t}||f}nt}|f}t}tj|r ||g|yd}t |}t dk7rt|}tt|}|D]"}tj||} ||g|$|| #ttf$r } | } Yd} ~ Ad} ~ wt$r} | } || }Yd} ~ Xd} ~ wwxYw)Nr*) rXrenvironr rrr rmaprFileNotFoundErrorNotADirectoryErrorru) rrr exec_funcargrest saved_exc path_listr!fullnameelast_excs rrrQs  + ' ||D$!!Ic"I t|~),  99S$'  h ) )  N"#56 H H   s$ BC )B00 C <CC cddl}|t}|j5|jdt |j d}tr2 |d}| td|}|t|tr t|}dddt}|jtS#t $rd}YjwxYw#tt f$rYdwxYw#1swYLxYw)zReturns the sequence of directories that will be searched for the named executable (similar to a shell) when launching a process. *env* must be an environment variable dict or None. If *env* is None, os.environ will be used. rNignorePATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)warningsrcatch_warnings simplefilter BytesWarningget TypeErrorsupports_bytes_environ ValueErrorKeyErrorrsrtrr ror)rrr path_listbs rrrqs {  "0h 5 I " ' \ ($DFF& $Iu)E$Y/ )0, ??7 ##' I  i(  00sRC B#C  B4,C # B1.C 0B11C 4CC CC  C)MutableMappingMappingcTeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zy )_EnvironcJ||_||_||_||_||_yr) encodekey decodekey encodevalue decodevalue_data)selfdatarrrrs r__init__z_Environ.__init__s'""&& rc |j|j|}|j|S#t$r t|dwxYwr)rrrrrkeyvalues r __getitem__z_Environ.__getitem__sN *JJt~~c23E&& *3-T ) *s 1Ac~|j|}|j|}t||||j|<yr)rrputenvrrs r __setitem__z_Environ.__setitem__s7nnS!  'sE 3rc|j|}t| |j|=y#t$r t|dwxYwr)runsetenvrr)rr encodedkeys r __delitem__z_Environ.__delitem__sD^^C(  * :& *3-T ) *s ,Ac#jKt|j}|D]}|j|ywr)rrr)rkeysrs r__iter__z_Environ.__iter__s2DJJ &C..% % &s13c,t|jSr)lenrrs r__len__z_Environ.__len__s4::rctdjfdjjD}d|dS)Nz, c3nK|],\}}j|dj|.yw)z: N)rr).0rrrs r z$_Environ.__repr__..s>$ U~~c"%R(8(8(?'B C$ s25z environ({z}))rritems)rformatted_itemss` r__repr__z_Environ.__repr__s=))$ "jj..0$  O,C00rct|Sr)dictrs rcopyz _Environ.copys Dzrc||vr|||<||Srrs r setdefaultz_Environ.setdefaults d?DICyrc(|j||Sr)update)rothers r__ior__z_Environ.__ior__s E rcjt|tstSt|}|j ||SrrsrNotImplementedr rrrrs r__or__z_Environ.__or__s,%)! !4j 5 rcjt|tstSt|}|j ||Srrrs r__ror__z_Environ.__ror__s,%)! !5k 4 rN)__name__ __module__ __qualname__rrrrrrr rrrrrrrrrrs>' *& 1 rrctdk(r:d}|t}fd}i}tjD]\}}||||<n&t j fdfd}}t}t ||||S)Nr*cht|ts!tdt|jz|S)Nstr expected, not %s)rsr/rtyperrs r check_strz!_createenviron..check_strs,eS) 6e9M9M MNNLrc0|jSr)upper)rencodes rrz!_createenviron..encodekeys#;$$& &rct|ts!tdt|jz|j dS)Nr"surrogateescape)rsr/rr#rr(rencodings rr(z_createenviron..encodes:eS) 6e9M9M MNN<<*;< .decodes<<*;< .fsencode,s/ (# h $??8V4 4Orcbt|}t|tr|jS|S)aDecode filename (an os.PathLike, bytes, or str) from the filesystem encoding with 'surrogateescape' error handler, return str unchanged. On Windows, use 'strict' error handler if the file system encoding is 'mbcs' (which is the default encoding). )rrsrtr.r<s rrz_fscodec..fsdecode8s/ (# h &??8V4 4Or)rr/getfilesystemencodeerrors)rrr,r>s @@r_fscodecrA(s6((*H  * * ,F   X rforkspawnvr)P_WAITP_NOWAIT P_NOWAITOc:t|ttfs td|r|ds t dt }|s | |||n ||||yy|tk(r|S t|d\}}t|rt|S#t dYyxYw)Nzargv must be a tuple or a listrz"argv first element cannot be empty) rsrrrrrBr(rEwaitpid WIFSTOPPEDwaitstatus_to_exitcode)rwrrrfuncpidwpidstss r _spawnvefrPUs$ .<= =47AB Bf ;t$tS)%x #CO cc?-c22 c s B Bc(t|||dtS)aspawnv(mode, file, args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. N)rPrrwrrs rrCrCpstT477rc(t||||tS)a:spawnve(mode, file, args, env) -> integer Execute file with arguments from args in a subprocess with the specified environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )rPrXrwrrrs rspawnverUystT377rc(t|||dtS)a8spawnvp(mode, file, args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. N)rPrrRs rspawnvprWstT488rc(t||||tS)a\spawnvpe(mode, file, args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )rPrrTs rspawnvperYstT388r)rCrUrWrYct|||S)aspawnl(mode, file, *args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )rCrRs rspawnlr[sdD$''rc.|d}t|||dd|S)a:spawnle(mode, file, *args, env) -> integer Execute file with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. rN)rUrTs rspawnler]s$2htT49c22rr[r]rWct|||S)aWspawnlp(mode, file, *args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )rWrRs rspawnlpr_stT4((rc.|d}t|||dd|S)a]spawnlpe(mode, file, *args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. rN)rYrTs rspawnlperas$2hdD"Is33rr_ravxworksct|tstdt|z|dvrt d|z|dk(s| t dddl}|dk(r6|j |dd|j|}t|j|S|j |dd|j| }t|j|S) Nz&invalid cmd type (%s, expected string))rwzinvalid mode %rrz+popen() does not support unbuffered streamsrdT)shelltextstdoutbufsize)rfrgstdinri) rsr/rr#r subprocessPopenPIPE _wrap_closerhrj)cmdrw bufferingrkprocs rpopenrrs#s#DtCyPQ Q z !.56 6 >Y.JK K 3;##C*.T+5??,5$7Dt{{D1 1##C*.T*4//,5$7Dtzz40 0rc0eZdZdZdZdZdZdZdZy)rnc ||_||_yr)_stream_proc)rstreamrqs rrz_wrap_close.__init__s!DLDJrc|jj|jj}|dk(rytdk(r|S|dzS)Nrr*)rurrvwaitr )r returncodes rrz_wrap_close.closesC LL   *JQt|!!!Q&rc|Srrrs r __enter__z_wrap_close.__enter__Krc$|jyrrrrs r__exit__z_wrap_close.__exit__ JJLrc.t|j|Sr)getattrru)rr s r __getattr__z_wrap_close.__getattr__s4<<. .rc,t|jSr)iterrurs rrz_wrap_close.__iter__s % %rN) rrrrrr}rrrrrrrnrns   '   / &rrnrrct|tstdt|zddl}d|vr|j |}|j ||||g|i|S)Nz&invalid fd type (%s, expected integer)rb)rsintrr#io text_encodingrE)fdrwrpr,rkwargsrs rrrs\ b# @48KLL  $##H- 2772tY B4 B6 BBrcpt|ttfr|St|} |j |}t|ttfr|Stdj|jt|j#t $r&t |drtd|jzwxYw)aaReturn the path representation of a path-like object. If str or bytes is passed in, it is returned unchanged. Otherwise the os.PathLike interface is used to get the path representation. If the path representation is not str or bytes, TypeError is raised. If the provided path is not str, bytes, or os.PathLike, TypeError is raised. __fspath__z/expected str, bytes or os.PathLike object, not z7expected {}.__fspath__() to return str or bytes, not {}) rsr/rtr#rr hasattrrrformat)r path_type path_reprs r_fspathrs$e % T I9((. )c5\*!!' (:(:(,Y(@(@"BC C 9 9l + #%.%7%789 9 9s B/B5rcTeZdZdZej dZedZee Z y)PathLikezCAbstract base class for implementing the file system path protocol.ct)z9Return the file system path representation of the object.)NotImplementedErrorrs rrzPathLike.__fspath__:s "!rc6|tur t|dStS)Nr)rrr)clssubclasss r__subclasshook__zPathLike.__subclasshook__?s (?!(L9 9rN) rrr__doc__abcabstractmethodr classmethodr GenericAlias__class_getitem__rrrrr6s>M"" $L1rrc*eZdZdZdZdZdZdZy)_AddedDllDirectoryc.||_||_||_yr)r _cookie_remove_dll_directory)rr cookieremove_dll_directorys rrz_AddedDllDirectory.__init__JsDI!DL)=D &rcH|j|jd|_yr)rrr rs rrz_AddedDllDirectory.closeNs  & &t|| 4DIrc|Srrrs rr}z_AddedDllDirectory.__enter__Qr~rc$|jyrrrs rrz_AddedDllDirectory.__exit__SrrcR|jrdj|jSy)Nzz)r rrs rr z_AddedDllDirectory.__repr__Us!yy299$))DD*rN)rrrrrr}rr rrrrrIs >    +rrc\ddl}|j|}t|||jS)aOAdd a path to the DLL search path. This search path is used when resolving dependencies for imported extension modules (the module itself is resolved through sys.path), and also by ctypes. Remove the directory by calling close() on the returned object or using it in a with statement. rN)r*_add_dll_directoryrr)r r*rs radd_dll_directoryrZs5 &&&t,!    $ $  r)iF)TNF).TNr)rdr)rdrN)irrrr9r_collections_abcrr#rrrbuiltin_module_names_namesrrr$r r r%r(r ImportError posixpathr r)extendr*ntpathmodulesos.pathrrrrr rrr rr,r1setr-supports_dir_fdsupports_effective_idsr. supports_fdsupports_follow_symlinksrrrrqr|rrrErVrrrrrrrrrrrrrr0rr4rr6rrtr8r9rArrrDrErFrPrCrUrWrYr[r]r_raplatformrrrnrrrrABCrrrrrrrs0 +DI ! !  7 f DG w ) NN$U+,  V^ DG w  NN$R()  & 3 44 I     yH# 5D H%G$G$F# G$F#G$H%G$F# J'H% I&H%G$ G$O 5D H%! 5DG$G$G$ I& I&H%HHTN J'G$G$ J'ygj1 _i(K 5D H%, G$F#I&G$x ]G$F#G$F#F# G$F##     @&,445U'nv$x FFO2sww2$4<++" %[               sHS SS* S6SSS'&S'*S32S36S?>S?