관리-도구
편집 파일: contextlib.cpython-310.opt-2.pyc
o 6��fe � @ s| d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm Z g d�Z G dd� de j�ZG dd � d e j�Z G d d� de�ZG dd � d e�ZG dd� d�ZG dd� deee�ZG dd� dee e�Zdd� Zdd� ZG dd� de�ZG dd� de �ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%�ZG d&d'� d'ee�ZG d(d)� d)ee �ZG d*d+� d+ee �ZdS ),� N)�deque��wraps)� MethodType�GenericAlias) �asynccontextmanager�contextmanager�closing�nullcontext�AbstractContextManager�AbstractAsyncContextManager�AsyncExitStack�ContextDecorator� ExitStack�redirect_stdout�redirect_stderr�suppress�aclosingc @ �8 e Zd Z ee�Zdd� Zejdd� �Z edd� �Z dS )r c C � | S �N� ��selfr r �1/opt/alt/python310/lib64/python3.10/contextlib.py� __enter__ s z AbstractContextManager.__enter__c C s d S r r �r �exc_type� exc_value� tracebackr r r �__exit__ s zAbstractContextManager.__exit__c C � | t u rt�|dd�S tS )Nr r )r �_collections_abc�_check_methods�NotImplemented��cls�Cr r r �__subclasshook__ s z'AbstractContextManager.__subclasshook__N)�__name__� __module__�__qualname__�classmethodr �__class_getitem__r �abc�abstractmethodr r( r r r r r � r c @ r )r c � s � | S r r r r r r � __aenter__+ s �z&AbstractAsyncContextManager.__aenter__c � s � d S r r r r r r � __aexit__/ s �z%AbstractAsyncContextManager.__aexit__c C r! )Nr1 r2 )r r"