Hacked By AnonymousFox
�
�܋f= � � � d dl mZ d dlZd dlZd dlZd dlmZmZ d dlmZ d dl m
Z
d dlmZ ej
dd�� � Zej
ddd�� � Zej
dd d�� � Zej
dd!d�� � Zd"d#d�ZdS )$� )�annotationsN)� Generator�Iterator)�copy)�Path)�TextIO�outr �return�Iterator[None]c # � K � | xt _ t _ dV � t j t _ t j t _ dS # t j t _ t j t _ w xY w)z+Patch and subsequently reset a text stream.N)�sys�stderr�stdout�
__stderr__�
__stdout__)r s �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/testutils/utils.py�_patch_streamsr s[ � � � � "�!�C�J���$�
�����^��
��^��
�
�
�� �^��
��^��
�#�#�#�#s �A �.A<�replacement_sys_path�list[str] | None�Generator[None, None, None]c # � K � t j } | �t | � � t _ d V � |t _ d S # |t _ w xY w�N)r
�pathr )r �
original_paths r �_test_sys_pathr sQ � � � � �H�M�!��+��0�1�1�C�H�
���� ������=��� � � � s �= �A�current_working_directory�str | Path | Nonec # � K � t j � � } | �t j | � � d V � t j |� � d S # t j |� � w xY wr )�os�getcwd�chdir)r �original_dirs r � _test_cwdr# ( sd � � � � �9�;�;�L��$�0��H�.�/�/�/�
����
������������������s �A �A�new_pythonpath�
str | Nonec # �\ K � t j � d� � }| r| t j d<