$oɅfddlZddlmZddlmZmZdZGddeZGddZdS) N)FakePathlibModulescandirwalkcHd|d}tj|tdS)Nz"You are using the legacy package 'zc' instead of the built-in module.Patching this package will no longer be supported in pyfakefs >= 6)category)warningswarnDeprecationWarning) module_namemsgs n/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyfakefs/fake_legacy_modules.pylegacy_warningrs? M[ M M M  M# 2333333ceZdZdZdZdZdS)FakePathlib2ModulezUses FakeFilesystem to provide a fake pathlib module replacement. for the `pathlib2` package available on PyPi. The usage of `pathlib2` is deprecated and will no longer be supported in future pyfakefs versions. Fct||}t|dr'tjsdt_t d|S)N__call__Tpathlib2)object__getattribute__hasattrr has_warnedr)selfnameattrs rrz#FakePathlib2Module.__getattribute__&sP&&tT22 4 $ $ '-?-J ',0  ) : & & & rN)__name__ __module__ __qualname____doc__rrrrrrs4 JrrcBeZdZdZedZdZdZd dZd d Z dS) FakeScanDirModuleaUses FakeFilesystem to provide a fake module replacement for the `scandir` package available on PyPi. The usage of the `scandir` package is deprecated and will no longer be supported in future pyfakefs versions. You need a fake_filesystem to use this: `filesystem = fake_filesystem.FakeFilesystem()` `fake_scandir_module = fake_filesystem.FakeScanDirModule(filesystem)` cdS)zqReturn the list of patched function names. Used for patching functions imported from the module. rr!r!rrdirzFakeScanDirModule.dir:s ! rc||_dS)N) filesystem)rr's r__init__zFakeScanDirModule.__init__As $rF.cp|jsd|j_tdt|j|S)aReturn an iterator of DirEntry objects corresponding to the entries in the directory given by path. Args: path: Path to the target directory within the fake filesystem. Returns: an iterator to an unsorted list of os.DirEntry objects for each entry in path. Raises: OSError: if the target is not a directory. Tr)r __class__rrr')rpaths rrzFakeScanDirModule.scandirFs8 &(,DN % 9 % % %t---rTNcv|jsd|j_tdt|j||||S)aPerform a walk operation over the fake filesystem. Args: top: The root directory from which to begin walk. topdown: Determines whether to return the tuples with the root as the first entry (`True`) or as the last, after all the child directory tuples (`False`). onerror: If not `None`, function which will be called to handle the `os.error` instance provided when `os.listdir()` fails. followlinks: If `True`, symbolic links are followed. Yields: (path, directories, nondirectories) for top and each of its subdirectories. See the documentation for the builtin os module for further details. Tr)rr+rrr')rtoptopdownonerror followlinkss rrzFakeScanDirModule.walkYs>" &(,DN % 9 % % %DOS'7KHHHr)r))TNF) rrrr staticmethodr%r(rrrr!rrr#r#.s}  !!\! %%%J....&IIIIIIrr#) r pyfakefs.fake_pathlibrpyfakefs.fake_scandirrrrrr#r!rrr5s433333////////444*"@I@I@I@I@I@I@I@I@I@Ir