Your IP : 18.220.144.160


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/os.cpython-313.pyc

�

*}gR���*�SrSSKrSSKrSSKrSSKJr \"\\	5r
\Rr/SQr
SrSrS\;aISrSrSS	K7 SS
KJr \
R)S5 SSKrSSKJr SSKr\
R3\"\55 COWS
\;aIS
rSrSS	K7 SS
KJr \
R)S5 SSKrSSKr\
R3\"\55 CSSKJr O\"S5e\\R8S'SSKJrJrJ r J!r!J"r"J#r#J$r$J%r% C\"S5(Ga�\&"5r'Sr(\)"5r*\("SS5 \("SS5 \("SS5 \("SS5 \("SS5 \("SS5 \("S S!5 \("S"S#5 \("S$S%5 \("S&S'5 \("S(S)5 \("S*S+5 \("S,S-5 \("S.S/5 \("S.S05 \("S1S5 \*r+\)"5r*\("SS5 \*r,\)"5r*\("S2S35 \("S4S5 \("S5S5 \("S6S5 \("S7S85 \("S7S95 \("S:S;5 \*R[\5 \("S<S=5 \("S>S5 \("S?S5 \("S@SA5 \"SB5(a\"SC5(a	\("SDSB5 \*r.\)"5r*\("SS5 \("SS5 \("SS5 \("SESF5 \("SGS5 \("S5S5 \"SH5(a	\("SIS5 \("SS5 \("SJS5 \("SKS5 \("SS5 \("S1S5 \("S5S5 \*r/C*CC'C(Sr0SLr1SMr2S�SOjr3SPr4SQr5\
R3/SRQ5 \6"5r7S�SSjr8\
R)ST5 \9\1\+::a,\:\1\.::a$S�SNSSU.SVjjr;Sr<SLr=SMr>SWr?\
R)SX5 SYr@SZrAS[rBS\rCS]rDS^rE\
R3/S_Q5 S�S`jrFS�SajrGSSbKJHrHJIrI "ScSd\H5rJSerK\K"5rLCKS�SfjrM\S
:grN\
R3Sg5 \N(a0ShrO\J"\LR�\O\Q\O\Q5rRCOS�SijrS\
R3Sj5 SkrT\T"5urUrVCT\"Sl5(aU\"Sm5(dH\"Sn5(a;SrWSL=rXrY\
R3/SoQ5 SprZSqr[Srr\Ssr]Str^\
R3/SuQ5 \"Sm5(aSvr_Swr`\
R3SxSy/5 \"Sz5(aS{raS|rb\
R3S}S~/5 \R�S:wa S�S�jrd"S�S�5re\
R)S�5 S�S�jrfS�rg\"S�5(d	\grhS�\hli"S�S�\R�5rk\S
:Xa
"S�S�5rlS�rm\"S�5(a\R�"5S:aS�rog\prog!\a GN
f=f!\a GNf=f!\a GN�f=f!\a GN�f=f)�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)�altsep�curdir�pardir�sep�pathsep�linesep�defpath�name�path�devnull�SEEK_SET�SEEK_CUR�SEEK_END�fsencode�fsdecode�
get_exec_path�fdopen�extsepc��U[5;$�N)�globals)rs �)/opt/alt/python313/lib64/python3.13/os.py�_existsr)s���7�9���c��[UR5$![a/ [U5Vs/sHoSS:wdM
UPM Os snfsns$f=f)Nr�_)�list�__all__�AttributeError�dir)�module�ns  r�_get_exports_listr$,sF��7��F�N�N�#�#���7��v�;�6�;�a�A�$�#�+��;��6�6�7�s��A�A�A�	A�A�posix�
)�*)�_exitr()�_have_functions�ntz
zno os specific module foundzos.path)rrrrr
rrr
r)c�h�U[;a(U[;a[R[U5 gggr)�_globalsr)�_set�add)�str�fns  r�_addr1hs'���(�N���!7��H�H�X�b�\�"�"8�Nr�HAVE_FACCESSAT�access�
HAVE_FCHMODAT�chmod�
HAVE_FCHOWNAT�chown�HAVE_FSTATAT�stat�HAVE_FUTIMESAT�utime�HAVE_LINKAT�link�HAVE_MKDIRAT�mkdir�
HAVE_MKFIFOAT�mkfifo�HAVE_MKNODAT�mknod�HAVE_OPENAT�open�HAVE_READLINKAT�readlink�
HAVE_RENAMEAT�rename�HAVE_SYMLINKAT�symlink�
HAVE_UNLINKAT�unlink�rmdir�HAVE_UTIMENSAT�HAVE_FCHDIR�chdir�HAVE_FCHMOD�
MS_WINDOWS�HAVE_FCHOWN�HAVE_FDOPENDIR�listdir�scandir�HAVE_FEXECVE�execve�HAVE_FTRUNCATE�truncate�
HAVE_FUTIMENS�HAVE_FUTIMES�HAVE_FPATHCONF�pathconf�statvfs�fstatvfs�
HAVE_FSTATVFS�
HAVE_LCHFLAGS�chflags�HAVE_LCHMOD�lchown�HAVE_LCHOWN�HAVE_LUTIMES�
HAVE_LSTAT��Fc���[R"U5up4U(d[R"U5up4U(a]U(aV[R"U5(d;[X2S9 [
n[
U[5(a[[
S5nXE:Xag[X5 g![a NJf=f![a& U(a"U5(degf=f)asmakedirs(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_ok�ASCIIN)r�split�exists�makedirs�FileExistsErrorr�
isinstance�bytesr?�OSError�isdir)r�moderm�head�tail�cdirs      rrqrq�s������D�!�J�D���Z�Z��%�
����T�[�[��.�.�	��T�-����d�E�"�"����)�D��<���
�d����	��	�����t�z�z�$�/�/�� 0��s$�"	B)�B9�)
B6�5B6�9-C)�(C)c�2�[U5 [R"U5upU(d[R"U5upU(a>U(a6[U5 [R"U5upU(a
U(aM4gggg![a gf=f)a�removedirs(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)rrxrys   r�
removedirsr|�st��
�$�K����D�!�J�D���Z�Z��%�
��
�4�	��$�K��Z�Z��%�
���4�4�$�4�$���	��	�s�B	�	
B�Bc�:�[R"U5up#U(a-U(a&[R"U5(d[U5 [	X5 [R"U5up#U(aU(a
[U5 ggg![a gf=f)arenames(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)�old�newrxrys    r�renamesr�sq�����C��J�D���T�[�[��.�.����
�3�����C��J�D���	��t���t���	��	�s�?B
�
B�B)rqr|r�c#�V# �[R"SXX#5 [U5/n[R[R
peU(Ga)UR
5n[U[5(aUv� M3/n/n/n	[U5n
SnU
 [U
5n
U[La,U
RSS9=(a U
R5(+nOU
R5nU(aUR!U
R"5 OUR!U
R"5 U(dKU(aDU(aSnOU
R%5nU(+nU(aU	R!U
R5 M�g![anUbU"U5 SnAGMNSnAff=f![a OLf=f![anUbU"U5 SnSnAO,SnAff=f![a SnN�f=f![a SnN�f=fSSS5 O!,(df   O=fU(aGM�U(aIXU4v� ['U5H3nU"UU5nU(dU"U5(aM"UR!U5 M5 O6UR!XU45 ['U	5HnUR!U5 M U(aGMZg7f)aj
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��follow_symlinks)�sys�audit�fspathr�islink�join�poprs�tuplerWru�next�
StopIteration�_walk_symlinks_as_files�is_dir�is_junction�appendr�
is_symlink�reversed)�top�topdown�onerror�followlinks�stackr�r��dirs�nondirs�	walk_dirs�
scandir_it�error�cont�entryr��	walk_intor��dirname�new_paths                   r�walkr� sQ���x�I�I�i��w�<�
�C�[�M�E��;�;��	�	�D�
��i�i�k���c�5�!�!��I�������	�	� ���J���
��	�� $�Z� 0��#�"�&=�=�!&���e��!D�!`�U�M^�M^�M`�I`��!&�������K�K��
�
�+��N�N�5�:�:�.��6�#�$(�	�/�).�)9�)9�);�J�)3�N�	� �!�(�(����4�W�1��"�	��"������	��)��������*�����D���	���#�#�F�#��$ '�/�*/�J�	/��I�Z�Z��Z����W�$�$�#�D�>����W�-��
�f�X�&6�&6��L�L��*�*�
�L�L�#�W�-�.�$�Y�/�����X�&�0�o�%�s��A=J)�E8�J)�G=�F�4G�G=�G�$AG=�<G"�+G=�7J)�8
F�F�
J)�F�J)�
F)�&F,�'G=�(F)�)F,�,
G
�6
G�G=�G
�
G=�G�G=�G�G=�"G1�.G=�0G1�1G=�4	J)�=
H�AJ)�AJ)�(J)r��r��dir_fdc#��# �[R"SXX#U5 [U5n[SX@US44/n[	U[
5nU(a[
XVXU5Shv�N U(aMU(a1UR5upxU[:Xa[U5 U(aM0ggNF!U(a1UR5upxU[:Xa[U5 U(aM0ff=f7f)aJDirectory 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.fwalkTN)
r�r�r��_fwalk_walkrsrt�_fwalkr��_fwalk_close�close)	r�r�r�r�r�r��isbytes�action�values	         r�fwalkr��s����B	�	�	�*�c�G�f�M��S�k����f�3��=�>�?���S�%�(��	!��!�%�'�O�T�T�T��%�� %�	�	��
���\�)��%�L��%�U��� %�	�	��
���\�)��%�L��%�s<�AC"�B%�B#�B%�*5C"�!C"�#B%�%6C�C�C"c
#�V^^# �UR5upVU[:Xa[U5 gU[:XaUv� gU[:XdeUupxmp�U(dU
c[U	SUS9nOU
RSS9n[
U	[[-US9mUR[T45 U(dSU(a&[R"WR5(dg[R"W[T55(dg[!T5n
/n/nU(dU(aSO/nU
Hqn
U
R"nU(a[%U5nU
R'5(a)URU5 UbURU
5 M^M`URU5 Ms U(aTX�T4v� OUR[TX�T445 [R*"TTSS5mUc#UR-UU4SjUSSS255 gUR-UU4Sj[/USSS2USSS2555 g![anU(aeUbU"U5 SnAgSnAff=f![aC U
R)5(aURU5 GMpGMt![a GM�f=ff=f7f)	NFr�r�)r�rc3�D># �UHn[STTU-US44v� M g7f�FN�r�)�.0r�topfd�toppaths  ��r�	<genexpr>�_fwalk.<locals>.<genexpr>4s,����(�&�D��u�e�W�t�^�T�4�H�I�&�s� ���c3�F># �UHup[STTU-X44v� M g7fr�r�)r�rr�r�r�s   ��rr�r�8s-����C�#A�K�D��u�e�W�t�^�T�I�J�#A�s�!)r�r�r��_fwalk_yieldr�r9rE�O_RDONLY�
O_NONBLOCKrur��st�S_ISDIR�st_moder�samestatrWrrr�r�r��extend�zip)r�r�r�r�r�r�r��isroot�dirfd�topnamer��orig_st�errr�r�r��entriesrr�r�s                  @@rr�r��sb����
�	�	��
���\�!��%�L��
�|�
#��K����$�$�$�16�.��w��	�"��=�"�7�E�%�P�G�#�j�j��j�?�G���(�Z�"7��F�E�	���l�E�*�+���b�j�j����9�9���=�=��$�u�+�6�6���U�^�
�����!�_�$�"���E��:�:�D����~��

��<�<�>�>��K�K��%��*����u�-�+��N�N�4�(� �&��4�%�/�/��L�L�,��$��(G�H�I��)�)�G�W�R�a�[�1���?��L�L�(� ��2��J�(�
(�
�L�L�C�#&�t�D�b�D�z�7�4�R�4�=�#A�C�
C��_�	����"������	��8�
���'�'�)�)����t�,�,�*�������
�s��A
J)�;H/�
B5J)�:I�:J)�>I�B J)�/
I�9I�J)�I�J)�
J&�$&J�
J)�
J"�J&�J)�!J"�"J&�&J)r�c��[X5 g)zhexecl(file, *args)

Execute the executable file with argument list args, replacing the
current process. N)�execv��file�argss  r�execlr�>s��

�$�rc�,�USn[XSSU5 g)z�execle(file, *args, env)

Execute the executable file with argument list args and
environment env, replacing the current process. r�N)rY�r�r��envs   r�execler�Es��
�r�(�C�
�4�c�r��C� rc��[X5 g)z�execlp(file, *args)

Execute the executable file (which is searched for along $PATH)
with argument list args, replacing the current process. N)�execvpr�s  r�execlpr�Ms��
�4�rc�,�USn[XSSU5 g)z�execlpe(file, *args, env)

Execute the executable file (which is searched for along $PATH)
with argument list args and environment env, replacing the current
process. r�N)�execvper�s   r�execlper�Ts���r�(�C��D�s��)�S�!rc��[X5 g)z�execvp(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��_execvper�s  rr�r�]s��
�T�rc��[XU5 g)z�execvpe(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. Nr�r�s   rr�r�es��
�T��r)r�r�r�r�r�r�c���Ub
[nX4nO[nU4n[n[R"U5(a
U"U/UQ76 gSn[U5n[S:wa[U5n[[U5nUH#n[R"Xp5nU"U/UQ76 M% UbUeW
e![[4a
n	U	n
Sn	A	MFSn	A	f[an	U	n
UcU	nSn	A	M`Sn	A	MfSn	A	ff=f)Nr*)
rYr��environrr�rrr�mapr��FileNotFoundError�NotADirectoryErrorru)r�r�r��	exec_func�argrest�	saved_exc�	path_listr!�fullname�e�last_excs           rr�r�ps���
���	��+���	��'�����|�|�D����$�!��!���I��c�"�I��t�|���~����)�,�	����9�9�S�'��	��h�)��)������
�N��"�#5�6�	��H���	��H�� ��	�!��	�s$�	B$�$C!�4B<�<
C!�	C�C!c���SSKnUc[nUR5 URS[5 URS5n[(a9USnUb[S5eUnUb [U[5(a[U5nSSS5 Wc[nUR[5$![a SnNxf=f![[4a Nmf=f!,(df   NT=f)z�Returns 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.
rN�ignore�PATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)�warningsr��catch_warnings�simplefilter�BytesWarning�get�	TypeError�supports_bytes_environ�
ValueError�KeyErrorrsrtrr
ror)r�r�r��
path_listbs    rrr�s����
�{���
�	 �	 �	"����h��5�	������I�"�!�
'� ��\�
��(�$�D�F�F�&�	��$��I�u�)E�)E�$�Y�/�	�)
#�,���	��?�?�7�#�#��'�	��I�	���i�(�
��
��
#�	"�sR�C�B1�C�C�3C�1C�=C�?C�C�C�C�C�C�
C')�MutableMapping�Mappingc�\�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrg)�_Environi�c�@�X lX0lX@lXPlXlgr)�	encodekey�	decodekey�encodevalue�decodevalue�_data)�self�datar�r�r�r�s      r�__init__�_Environ.__init__�s��"��"��&��&���
rc��URURU5nURU5$![a
 [U5Sef=fr)r�r�r�r��r��keyr�s   r�__getitem__�_Environ.__getitem__�sN��	*��J�J�t�~�~�c�2�3�E�����&�&���	*��3�-�T�)�	*�s	�1�Ac�z�URU5nURU5n[X5 X RU'gr)r�r��putenvr�rs   r�__setitem__�_Environ.__setitem__�s3���n�n�S�!��� � ��'���s���
�
�3�rc��URU5n[U5 URU	g![a
 [U5Sef=fr)r��unsetenvr�r�)r�r�
encodedkeys   r�__delitem__�_Environ.__delitem__�sD���^�^�C�(�
����	*��
�
�:�&���	*��3�-�T�)�	*�s	�
,�Ac#�n# �[UR5nUHnURU5v� M g7fr)rr�r�)r��keysrs   r�__iter__�_Environ.__iter__�s,����D�J�J����C��.�.��%�%��s�35c�,�[UR5$r)�lenr��r�s r�__len__�_Environ.__len__�s���4�:�:��rc�v^�SRU4SjTRR555nSUS3$)Nz, c3�v># �UH.upTRU5<STRU5<3v� M0 g7f)z: N)r�r�)r�rr�r�s   �rr��$_Environ.__repr__.<locals>.<genexpr>�s;����$
�0�
���~�~�c�"�%�R��(8�(8��(?�'B�C�0�s�69z	environ({z}))r�r��items)r��formatted_itemss` r�__repr__�_Environ.__repr__�s=����)�)�$
�"�j�j�.�.�0�$
�
���O�,�C�0�0rc��[U5$r)�dictrs r�copy�
_Environ.copy�s���D�z�rc��X;aX U'X$r�rs   r�
setdefault�_Environ.setdefault�s���?���I��y�rc�(�URU5 U$r)�update)r��others  r�__ior__�_Environ.__ior__�s�����E���rc�t�[U[5(d[$[U5nUR	U5 U$r�rsr��NotImplementedr"r*�r�r+rs   r�__or__�_Environ.__or__�s/���%��)�)�!�!��4�j���
�
�5���
rc�t�[U[5(d[$[U5nUR	U5 U$rr/r1s   r�__ror__�_Environ.__ror__s/���%��)�)�!�!��5�k���
�
�4���
r)r�r�r�r�r�N)�__name__�
__module__�__qualname__�__firstlineno__rrr
rrrrr#r'r,r2r5�__static_attributes__r&rrr�r��s>���'� �*�&��1���
��rr�c�^^�[S:Xa;SnUm[nU4Sjn0n[R5HupEXSU"U5'M O)[R
"5mU4SjmU4SjnTn[n[
UX!TU5$)Nr*c�r�[U[5(d![S[U5R-5eU$)N�str expected, not %s)rsr/r��typer7�r�s r�	check_str�!_createenviron.<locals>.check_strs/���e�S�)�)�� 6��e��9M�9M� M�N�N��Lrc�0>�T"U5R5$r)�upper)r�encodes �rr��!_createenviron.<locals>.encodekeys����#�;�$�$�&�&rc�>�[U[5(d![S[U5R-5eURTS5$)Nr>�surrogateescape)rsr/r�r?r7rE�r��encodings �rrE�_createenviron.<locals>.encodes=����e�S�)�)�� 6��e��9M�9M� M�N�N��<�<��*;�<�<rc�(>�URTS5$)NrH)�decoderIs �rrM�_createenviron.<locals>.decodes����<�<��*;�<�<r)rr/r�rr��getfilesystemencodingr�)rArMr�rrr�rErJs      @@r�_createenvironrPs~����t�|�	�����	'���!�-�-�/�J�C�#(��3�� �*��,�,�.��	=�	=��	����D�����rc�,�[RX5$)z�Get an environment variable, return None if it doesn't exist.
The optional second argument can specify an alternate default.
key, default and the result are str.)r�r��r�defaults  r�getenvrT*s���;�;�s�$�$r)rTr�c�r�[U[5(d![S[U5R-5eU$)Nzbytes expected, not %s)rsrtr�r?r7r@s r�_check_bytesrV4s/���%��'�'��4�t�E�{�7K�7K�K�L�L��rc�,�[RX5$)z�Get an environment variable, return None if it doesn't exist.
The optional second argument can specify an alternate default.
key, default and the result are bytes.)�environbr�rRs  r�getenvbrY?s���|�|�C�)�)r)rXrYc�|^^�[R"5m[R"5mUU4SjnUU4SjnX4$)Nc�l>�[U5n[U[5(aURTT5$U$)z�Encode filename (an os.PathLike, bytes, or str) to the filesystem
encoding with 'surrogateescape' error handler, return bytes unchanged.
On Windows, use 'strict' error handler if the file system encoding is
'mbcs' (which is the default encoding).
)r�rsr/rE��filenamerJ�errorss ��rr�_fscodec.<locals>.fsencodeKs2����(�#���h��$�$��?�?�8�V�4�4��Orc�l>�[U5n[U[5(aURTT5$U$)z�Decode 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).
)r�rsrtrMr\s ��rr�_fscodec.<locals>.fsdecodeWs2����(�#���h��&�&��?�?�8�V�4�4��Or)r�rO�getfilesystemencodeerrors)rrrJr^s  @@r�_fscodecrcGs4����(�(�*�H�
�
*�
*�
,�F�
�
���r�fork�spawnvr�)�P_WAIT�P_NOWAIT�	P_NOWAITOc�j�[U[[45(d[S5eU(a
US(d[	S5e[5nU(dUc	U"X5 gU"XU5 gU[:XaU$[US5upg[U5(aM![U5$! [
S5 g=f)Nzargv must be a tuple or a listrz"argv first element cannot be empty�)rsr�rr�r�rdr(rg�waitpid�
WIFSTOPPED�waitstatus_to_exitcode)rwr�r�r��func�pid�wpid�stss        r�	_spawnvefrrts����$���
�.�.��<�=�=��4��7��A�B�B��f���
��;���$���S�)�
�x���
��#�C��O�	���c�?�?��-�c�2�2��
��c�
�s�B#�!	B#�#
B2c�&�[XUS[5$)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)rrr��rwr�r�s   rrere�s����T�4��7�7rc�$�[XX#[5$)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. )rrrY�rwr�r�r�s    r�spawnverw�s����T��7�7rc�&�[XUS[5$)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)rrr�rts   r�spawnvpry�s����T�4��8�8rc�$�[XX#[5$)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. )rrr�rvs    r�spawnvper{�s����T��8�8r)rerwryr{c��[XU5$)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. )rerts   r�spawnlr}�s���d�$�'�'rc�,�USn[XUSSU5$)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. r�N)rwrvs    r�spawnler�s"���2�h���t�4���9�c�2�2rr}rryc��[XU5$)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. )ryrts   r�spawnlpr��s���t�4�(�(rc�,�USn[XUSSU5$)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. r�N)r{rvs    r�spawnlper��s"���2�h����D��"�I�s�3�3rr�r��vxworksc��[U[5(d[S[U5-5eUS;a[	SU-5eUS:XdUc[	S5eSSKnUS:Xa3UR
USSURUS9n[URU5$UR
USSURUS	9n[URU5$)
Nz&invalid cmd type (%s, expected string))�r�wzinvalid mode %rrz+popen() does not support unbuffered streamsr�T)�shell�text�stdout�bufsize)r�r��stdinr�)rsr/r�r?r��
subprocess�Popen�PIPE�_wrap_closer�r�)�cmdrw�	bufferingr��procs     r�popenr��s����#�s�#�#��D�t�C�y�P�Q�Q��z�!��.��5�6�6���>�Y�.��J�K�K���3�;��#�#�C�*.�T�+5�?�?�,5�$�7�D��t�{�{�D�1�1��#�#�C�*.�T�*4�/�/�,5�$�7�D��t�z�z�4�0�0rc�8�\rSrSrSrSrSrSrSrSr	Sr
g	)
r�i
c��XlX lgr)�_stream�_proc)r��streamr�s   rr�_wrap_close.__init__s��!�L��Jrc��URR5 URR5nUS:Xag[S:XaU$US-$)Nrr*�)r�r�r��waitr)r��
returncodes  rr��_wrap_close.closesC���L�L��� ������*�J��Q����t�|�!�!�!�Q��&rc��U$rr&rs r�	__enter__�_wrap_close.__enter__����Krc�$�UR5 gr�r��r�r�s  r�__exit__�_wrap_close.__exit__����J�J�Lrc�.�[URU5$r)�getattrr�)r�rs  r�__getattr__�_wrap_close.__getattr__s���4�<�<��.�.rc�,�[UR5$r)�iterr�rs rr�_wrap_close.__iter__ s������%�%r)r�r�N)r7r8r9r:rr�r�r�r�rr;r&rrr�r�
s ��	�	'�	�	�	/�	&rr�r�c��[U[5(d[S[U5-5eSSKnSU;aURU5nUR"XX#/UQ70UD6$)Nz&invalid fd type (%s, expected integer)r�b)rs�intr�r?�io�
text_encodingrE)�fdrwr�rJr��kwargsr�s       rrr&sY���b�#����@�4��8�K�L�L�
�
�$���#�#�H�-��
�7�7�2�Y�B�4�B�6�B�Brc���[U[[45(aU$[U5nUR	U5n[U[[45(aU$[SRUR[U5R55e![
a+ [
US5(ae[SUR-5e[a( URc[SUR-5Seef=f)aMReturn 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 Nz7expected {}.__fspath__() to return str or bytes, not {})
rsr/rtr?r�r �hasattrr�r7�format)r�	path_type�	path_reprs   r�_fspathr�1s���$��e��%�%����T�
�I�
��(�(��.�	��)�c�5�\�*�*����!�!'��	�(:�(:�(,�Y��(@�(@�"B�C�	C���9��9�l�+�+���#�%.�%7�%7�8�9�
9������'��#�%.�%7�%7�8�9�>B�
C�
��s�B�A%C5r�c�`�\rSrSrSrSr\RS5r\	S5r
\	"\5rSr
g)�PathLikei[zCAbstract base class for implementing the file system path protocol.r&c��[e)z9Return the file system path representation of the object.)�NotImplementedErrorrs rr��PathLike.__fspath__as
��"�!rc�8�U[La[US5$[$)Nr�)r�rr0)�cls�subclasss  r�__subclasshook__�PathLike.__subclasshook__fs���(�?�!�(�L�9�9��rN)r7r8r9r:�__doc__�	__slots__�abc�abstractmethodr��classmethodr��GenericAlias�__class_getitem__r;r&rrr�r�[sC��M��I����"��"�����
$�L�1�rr�c�2�\rSrSrSrSrSrSrSrSr	g)	�_AddedDllDirectoryipc�(�XlX lX0lgr)r�_cookie�_remove_dll_directory)r�r�cookie�remove_dll_directorys    rr�_AddedDllDirectory.__init__qs���I�!�L�)=�&rc�H�URUR5 SUlgr)r�r�rrs rr��_AddedDllDirectory.closeus���&�&�t�|�|�4��D�Irc��U$rr&rs rr��_AddedDllDirectory.__enter__xr�rc�$�UR5 grr�r�s  rr��_AddedDllDirectory.__exit__zr�rc�\�UR(aSRUR5$g)Nz<AddedDllDirectory({!r})>z<AddedDllDirectory()>)rr�rs rr�_AddedDllDirectory.__repr__|s!���y�y�2�9�9�$�)�)�D�D�*r)r�r�rN)
r7r8r9r:rr�r�r�rr;r&rrr�r�ps��	>�	�	�	�	+rr�c�\�SSKnUR"U5n[UUUR5$)aAdd 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_directoryr�r�)rr*r�s   r�add_dll_directoryr��s3��	��&�&�t�,��!����$�$�
�	
r�sched_getaffinityc�*�[[S55$)z�
Get the number of CPUs of the current process.

Return the number of logical CPUs usable by the calling thread of the
current process. Return None if indeterminable.
r)rr�r&rr�process_cpu_countr��s���$�Q�'�(�(r)i�F)TNF)�.TNr)r�r�)r�r�N)qr�r�r�r9r��_collections_abcrr?rr�r��builtin_module_names�_namesrrr$rr	r%r(r��ImportError�	posixpathrr)r�r*�ntpath�modules�os.pathrrrrr
rrr
rr,r1�setr-�supports_dir_fd�supports_effective_idsr.�supports_fd�supports_follow_symlinksrrrrqr|r��objectr�r�rErWr�r�r�r�r�r�r�r�r�r�r�r�rr�r�r�rPr�rTr�rVr�rtrXrYrcrrrfrgrhrrrerwryr{r}rr�r��platformr�r�rr�r�r7�ABCr�r�r��_get_cpu_count_configr��	cpu_countr&rr�<module>r�s]���0�
��+��D��I���	�	!�	!����
�7��f���D��G��
�����w���
�)���N�N�$�U�+�,�
�	�V�^��D��G��
�����w���
��N�N�$�R�(�)�
�
�&�
�3�
4�4�����I��
�
�
�������y�H�#��5�D��	�H�%���G�$���G�$���F�#��	�G�$���F�#���G�$���H�%���G�$���F�#��	�J�'���H�%��	�I�&���H�%���G�$��	�G�$��O��5�D��	�H�%�!���5�D���G�$���G�$���G�$���G�$��	�I�&��	�I�&���H�%��H�H�T�N��	�J�'���G�$���G�$��	�J�'��y���g�j�1�1��_�i�(��K��5�D��	�H�%�,	��G�$���F�#���I�&���G�$���G�$��x����]�G�$���F�#���G�$���F�#���F�#��	�G�$���F�#�#������
������
�@&�,�4���4�5�!�(��X'�t���v���$�<�?�"����+�'E�-!�e�TX�-!�`�K��L��L�HC�T�N�N�7���!��"������G�H��@)$�Z5�G�~�G�R�<�
���%��$�,�����3�4�����
�
��e��e��H�	�*��N�N�*�+��<�Z���(���6�?�?�7�8�,�,���1A�1A�
�F���H�y��N�N�6�7�3�68�8�9�9��N�N�?�@��8���(�	3��N�N�H�i�(�)��9���)�	4��N�N�I�z�*�+��<�<�9��1�,&�&�,�N�N�7��C�!C�J�x���
�F��F�O�2�s�w�w�2�(�4�<�+�+�"
�&����C�$=�$=�$?�!�$C�)�"���I#�
��
���
��
���
��
���
��
�sH�U!�"U.�U;�
V�!U+�*U+�.U8�7U8�;V�V�V�V

?>