File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/__pycache__/fake_pathlib.cpython-311.pyc
Back
� �|oi.� � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlmZ ddl mZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ dd lmZmZ ddlm Z ddl!m"Z"m#Z#m$Z$ h d �d� e%dd� � D � � z d� e%dd� � D � � z Z&d� Z'd� Z(d� Z)d� Z* ej+ Z,n # e-$ r e.Z,Y nw xY w G d� de,� � Z/ e/� � Z0e j1 dk r2ej2 Z3 G d� de3� � Z4 G d� de4� � Z5 G d� de4� � Z6n| G d� d e � � Z7 G d!� d"e � � Z8d#ed$e$d%efd&�Z9 e j: � � D ]FZ; e<e e;� � Z= e>e8e; e9e=e$j? � � � � e>e7e; e9e=e$j@ � � � � �G G d'� d(ejA � � ZBd)� ZC G d*� d+� � ZD G d,� d-� � ZE G d.� d/ejA � � ZFe j1 d0k rOd#ed%efd1�ZG ejH eFejI � � D ]0\ Z;Z=e;�J d2� � s e>eFe; eGe=� � � � �1 G d3� d4� � ZK G d5� d6� � ZLdS )7a� A fake implementation for pathlib working with FakeFilesystem. New in pyfakefs 3.0. Usage: If using `fake_filesystem_unittest.TestCase`, pytest fs fixture, or directly `Patcher`, pathlib gets replaced by fake_pathlib together with other file system related modules. Note: as the implementation is based on FakeFilesystem, all faked classes (including PurePosixPath, PosixPath, PureWindowsPath and WindowsPath) get the properties of the underlying fake filesystem. � N)�PurePath)�Callable�List�Optional)�mock)�quote_from_bytes)�fake_scandir)�FakeFilesystem)� fake_open)�FakeOsModule�use_original_os)�FakePathModule)�IS_PYPY�is_called_from_skipped_module�FSType> �AUX�CON�NUL�PRNc � � h | ]}d |z ��S )zCOM%d� ��.0�is �g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyfakefs/fake_pathlib.py� <setcomp>r 5 � � �)�)�)�q�w��{�)�)�)� � � c � � h | ]}d |z ��S )zLPT%dr r s r r r 6 r r c �� � | t _ t j dk r�t | � � t j _ t | � � t j _ t | � � }d|_ d|_ |t j _ t | � � }d|_ d|_ |t j _ dS t | � � }| j rt! | |� � |_ t | � � }| j st% | |� � |_ t j dk rdnd}t'