Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_shutil.cpython-311.opt-1.pyc |
�
�KeZ� � � � d dl Z d dlZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dlZd dlmZmZmZmZmZmZmZmZmZmZmZmZ d dlZd dlZ d dlZn
# e$ r dZY nw xY wd dl m!Z! d dl"m#Z# d dl$m%Z%m&Z& e%dz Z'e%dz Z(e%dz Z)ej* �+ d � � Z,ej* �+ d
� � Z-ej* dd� dk Z. d dl/Z/d dl0Z0d
Z1n
# e$ r dZ1Y nw xY w d dl2Z2n
# e$ r dZ2Y nw xY we j3 �4 d e5d� � �� � Z6d� Z7d� Z8d=d�Z9d� Z:d=d�Z;d� Z<d� Z= e=� � Z>d� Z? G d� d� � Z@ G d� de@e jA � � ZB G d� de@e jA � � ZC G d � d!e@e jA � � ZD G d"� d#e@e jA � � ZE G d$� d%e@e jA � � ZF G d&� d'e@e jA � � ZG G d(� d)eG� � ZH G d*� d+e@e jA � � ZI G d,� d-e jA � � ZJ G d.� d/e jA � � ZK G d0� d1eL� � ZM e jN e> d2� � G d3� d4eMe jA � � � � ZO e jN e, d5� � G d6� d7eMe jA � � � � ZP G d8� d9e jA � � ZQ G d:� d;e jA � � ZReSd<k r e jT � � dS dS )>� N)�make_archive�register_archive_format�unregister_archive_format�get_archive_formats�Error�unpack_archive�register_unpack_format�
RegistryError�unregister_unpack_format�get_unpack_formats�
SameFileError�_GiveupOnFastCopy)�support)� os_helper)�TESTFN�FakePath�2�_SRC�_DST�darwin�sunos� �aixTFzos.chdirzshouldn't call os.chdir()��side_effectc �J � t t t dd� � d� � �)N�EXDEV� zInvalid cross-device link)�OSError�getattr�errno)�args�kwargss �:/usr/local/apps/python3/lib/python3.11/test/test_shutil.py�_fake_renamer% 9 s � �
�'�%��"�-�-�/J�
K�
K�K� c �F � � t j � � � � fd�� � }|S )Nc � �� t j }t t _ �| i |��|t _ S # |t _ w xY w�N)�os�renamer% )r"