관리-도구
편집 파일: logging.cpython-310.pyc
o ƚRe- � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlmZm Z m Z mZmZm Z mZmZ d dlmZmZ d dlmZ d dlmZ d dlmZ zd dlZW n ey_ d dlZY nw zd dlmZ W n eys dZY nw e�� Z ed �Z!G d d� de�Z"dee# d e#de$fdd�Z%e j&d)de'ded fdd��Z(de'fdd�Z)G dd� dej*�Z+de,de e,ge,f fdd�Z-G dd� dej.�Z/G dd� dej0j1�Z2G d d!� d!e�Z3G d"d#� d#e�Z4d$e'd%e$d&ee, de'fd'd(�Z5dS )*� N)�Filter)�IO�Any�Callable�Iterator�Optional�TextIO�Type�cast)�VERBOSE� getLogger)�WINDOWS)�DEPRECATION_MSG_PREFIX)� ensure_dir)�coloramazpip.subprocessorc @ s e Zd ZdZdS )�BrokenStdoutLoggingErrorzO Raised if BrokenPipeError occurs for the stdout stream while logging. N)�__name__� __module__�__qualname__�__doc__� r r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/logging.pyr ! s r � exc_class�exc�returnc C s0 | t u rdS ts dS t|t�o|jtjtjfv S )NTF)�BrokenPipeErrorr � isinstance�OSError�errno�EINVAL�EPIPE)r r r r r �_is_broken_pipe_error'