File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/__pycache__/fake_file.cpython-311.pyc
Back
� �|oiN� � � � d Z ddlZddlZddlZddlZddlZddlmZmZ ddl m Z ddlmZm Z mZmZmZmZmZmZmZmZmZmZmZ ddlmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z( erddl)m*Z* ej+ Z,ed Z-ed Z. G d� de/� � Z0 G d � d� � Z1 G d� de1� � Z2 G d� de1� � Z3 G d� de1� � Z4 G d� de4� � Z5 G d� d� � Z6 G d� d� � Z7 G d� d� � Z8 G d� d� � Z9dS )z0Fake implementations for different file objects.� N)�S_IFREG�S_IFDIR)� TracebackType) �List�Optional�Callable�Union�Any�Dict�cast�AnyStr�NoReturn�Iterator�TextIO�Type� TYPE_CHECKING)�helpers) �FakeStatResult�BinaryBufferIO�TextBufferIO�is_int_type�is_unicode_string� to_string�matching_string� real_encoding�AnyPath� AnyString�get_locale_encoding� _OpenModes�is_root)�FakeFilesystem)�FakeFileWrapper�FakeDirWrapper�StandardStreamWrapper�FakePipeWrapper)�FakeFile� FakeDirectoryc �, � � e Zd ZdZdeddf� fd�Z� xZS )�FakeLargeFileIoExceptionz|Exception thrown on unsupported operations for fake large files. Fake large files have a size with no real content. � file_path�returnNc �P �� t � � � d|z � � d S )Nz?Read and write operations not supported for fake large file: %s)�super�__init__)�selfr* � __class__s ��d/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyfakefs/fake_file.pyr. z!FakeLargeFileIoException.__init__Q s6 �� � ����� "�$-� .� � � � � � )�__name__� __module__�__qualname__�__doc__�strr. � __classcell__�r0 s @r1 r) r) L sU �� � � � � �� � �#� �$� � � � � � � � � � r2 r) c �H � � e Zd ZdZdZeej z ddddddfdede de e de d d e e d e e de ed gdf de e fd �Zede e fd�� � Zede e fd�� � Zedefd�� � Zej deddfd�� � Zedefd�� � Zej deddfd�� � Zedefd�� � Zej deddfd�� � Zde ddfd�Zde ddfd�Zdefd�Zdeeedf de e fd�Zdedefd�Zd-ded e e defd�Zede fd �� � Z e j de ddfd!�� � Z edefd"�� � Z!e"j# d#k redefd$�� � Z$d%ede%f� fd&�Z&d'ed(e%ddf� fd)�Z'defd*�Z(d+e defd,�Z)� xZ*S ).r&