OwlCyberSecurity - MANAGER
Edit File: temp_dir.pyc
� �Rec�����������@@��s���d��d�l��m�Z�d��d�l�Z�d��d�l�Z�d��d�l�Z�d��d�l�Z�d��d�l�Z�d��d�l�m �Z �d��d�l �m�Z�d��d�l�m �Z �d��d�l�m�Z�m�Z�d��d�l�m�Z�e�r��d��d�l�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�e�d �d �d��Z�n��e�j�e���Z�e�d�d �d�d�d�d���Z�d�a �e �d������Z!�d�e"�f�d�������YZ#�d�a$�e �d������Z%�d�e"�f�d�������YZ&�e&����Z'�d�e"�f�d�������YZ(�d�e(�f�d�������YZ)�d�S(���i����(���t���absolute_importN(���t���contextmanager(���t ���ExitStack(���t���ensure_text(���t���enumt���rmtree(���t���MYPY_CHECK_RUNNING(���t���Anyt���Dictt���Iteratort���Optionalt���TypeVart���Uniont���_Tt���boundt ���TempDirectoryt ���BUILD_ENVs ���build-envt���EPHEM_WHEEL_CACHEs���ephem-wheel-cachet ���REQ_BUILDs ���req-buildc����������c@��s6���t������'�}��t�|��}�a�z �d��VWd��|�a�XWd��QXd��S(���N(���R���t���_tempdir_manager(���t���stackt���old_tempdir_manager(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���global_tempdir_manager%���s ���� t���TempDirectoryTypeRegistryc�����������B@��s)���e��Z�d��Z�d����Z�d����Z�d����Z�RS(���s$���Manages temp directory behavior c���������C@��s ���i��|��_��d��S(���N(���t���_should_delete(���t���self(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���__init__5���s����c���������C@��s���|�|��j��|�<d�S(���s[���Indicate whether a TempDirectory of the given kind should be auto-deleted. N(���R���(���R���t���kindt���value(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt ���set_delete9���s����c���������C@��s���|��j��j�|�t���S(���s^���Get configured auto-delete flag for a given TempDirectory type, default True. (���R���t���gett���True(���R���R���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt ���get_delete@���s����(���t���__name__t ���__module__t���__doc__R���R���R ���(����(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR���1���s��� c����������c@��s&���t��}��t����a��z �t��VWd�|��a��Xd�S(���su���Provides a scoped global tempdir registry that can be used to dictate whether directories should be deleted. N(���t���_tempdir_registryR���(���t���old_tempdir_registry(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���tempdir_registryK���s ���� t���_Defaultc�����������B@��s���e��Z�RS(����(���R!���R"���(����(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR'���Z���s���c�����������B@��s_���e��Z�d��Z�d �e�d�e�d���Z�e�d������Z�d����Z �d����Z �d����Z�d����Z�d����Z �RS( ���sM��Helper class that owns and cleans up a temporary directory. This class can be used as a context manager or as an OO representation of a temporary directory. Attributes: path Location to the created temporary directory delete Whether the directory should be deleted when exiting (when used as a contextmanager) Methods: cleanup() Deletes the temporary directory When used as a context manager, if the delete attribute is True, on exiting the context the temporary directory is deleted. t���tempc���������C@��s����t��t�|����j����|�t�k�r=�|�d��k �r4�t�}�q=�d��}�n��|�d��k�r[�|��j�|���}�n��|�|��_�t�|��_�|�|��_ �|�|��_ �|�r��t�d��k �s��t���t�j �|����n��d��S(���N(���t���superR���R���t���_defaultt���Nonet���Falset���_createt���_patht���_deletedt���deleteR���R���t���AssertionErrort ���enter_context(���R���t���pathR0���R���t���globally_managed(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR���v���s���� c���������C@��s)���|��j��s"�t�d�j�|��j�������|��j�S(���Ns$���Attempted to access deleted path: {}(���R/���R1���t���formatR.���(���R���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR3�������s���� c���������C@��s���d�j��|��j�j�|��j���S(���Ns ���<{} {!r}>(���R5���t ���__class__R!���R3���(���R���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���__repr__����s����c���������C@��s���|��S(���N(����(���R���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt ���__enter__����s����c���������C@��sS���|��j��d��k �r�|��j��}�n!�t�r6�t�j�|��j���}�n�t�}�|�rO�|��j����n��d��S(���N(���R0���R+���R$���R ���R���R���t���cleanup(���R���t���excR���t���tbR0���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���__exit__����s����c���������C@��s;���t��j�j�t�j�d�d�j�|�������}�t�j�d�|���|�S(���sE���Create a temporary directory and store its path in self.path t���prefixs���pip-{}-s���Created temporary directory: %s(���t���osR3���t���realpatht���tempfilet���mkdtempR5���t���loggert���debug(���R���R���R3���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR-�������s���� c���������C@��s8���t��|��_�t�j�j�|��j���r4�t�t�|��j�����n��d�S(���s?���Remove the temporary directory created and reset state N(���R���R/���R>���R3���t���existsR.���R���R���(���R���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR9�������s���� N(���R!���R"���R#���R+���R*���R,���R���t���propertyR3���R7���R8���R<���R-���R9���(����(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR���a���s��� t���AdjacentTempDirectoryc�����������B@��s8���e��Z�d��Z�d�Z�d�d���Z�e�d������Z�d����Z�RS(���s���Helper class that creates a temporary directory adjacent to a real one. Attributes: original The original directory to create a temp directory for. path After calling create() or entering, contains the full path to the temporary directory. delete Whether the directory should be deleted when exiting (when used as a contextmanager) s���-~.=%0123456789c���������C@��s/���|�j��d���|��_�t�t�|����j�d�|���d��S(���Ns���/\R0���(���t���rstript���originalR)���RF���R���(���R���RH���R0���(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR�������s����c���������c@��s����xp�t��d�t�|�����D]Y�}�xP�t�j�|��j�|�d���D]5�}�d�d�j�|���|�|�}�|�|�k�r6�|�Vq6�q6�Wq�Wxh�t��t�|��j�����D]Q�}�xH�t�j�|��j�|���D]1�}�d�d�j�|���|�}�|�|�k�r��|�Vq��q��Wq��Wd�S(���s��Generates a series of temporary names. The algorithm replaces the leading characters in the name with ones that are valid filesystem characters, but are not valid package names (for both Python and pip definitions of package). i���t���~t����N(���t���ranget���lent ���itertoolst���combinations_with_replacementt ���LEADING_CHARSt���join(���t���clst���namet���it ���candidatet���new_name(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���_generate_names����s���� c���������C@��s����t��j�j�|��j���\�}�}�x��|��j�|���D]m�}�t��j�j�|�|���}�y�t��j�|���Wn+�t�k �r��}�|�j�t�j �k�r�����q��q+�Xt��j�j �|���}�Pq+�Wt��j�j �t�j�d�d�j �|�������}�t�j�d�|���|�S(���NR=���s���pip-{}-s���Created temporary directory: %s(���R>���R3���t���splitRH���RV���RP���t���mkdirt���OSErrort���errnot���EEXISTR?���R@���RA���R5���RB���RC���(���R���R���t���rootRR���RT���R3���t���ex(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyR-�������s���� N( ���R!���R"���R#���RO���R+���R���t���classmethodRV���R-���(����(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyRF�������s ��� (*���t ���__future__R����RZ���RM���t���loggingt���os.pathR>���R@���t ���contextlibR���t���pip._vendor.contextlib2R���t���pip._vendor.sixR���t���pip._internal.utils.miscR���R���t���pip._internal.utils.typingR���t���typingR���R���R ���R ���R���R���R ���t ���getLoggerR!���RB���t ���tempdir_kindsR+���R���R���t���objectR���R$���R&���R'���R*���R���RF���(����(����(����s����/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.pyt���<module>���s6���. i