fS 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_IFREGS_IFDIR) TracebackType) ListOptionalCallableUnionAnyDictcastAnyStrNoReturnIteratorTextIOType TYPE_CHECKING)helpers) FakeStatResultBinaryBufferIOTextBufferIOis_int_typeis_unicode_string to_stringmatching_string real_encodingAnyPath AnyStringget_locale_encoding _OpenModesis_root)FakeFilesystem)FakeFileWrapperFakeDirWrapperStandardStreamWrapperFakePipeWrapper)FakeFile FakeDirectoryc , e Zd ZdZdeddf fdZ xZS )FakeLargeFileIoExceptionz|Exception thrown on unsupported operations for fake large files. Fake large files have a size with no real content. file_pathreturnNc 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 ddfdZde ddfdZdefdZdeeedf de e fdZdedefdZd-ded e e defdZede 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&