관리-도구
편집 파일: hashes.cpython-37.pyc
B ��ReF � @ s� d dl mZ d dlZd dlmZmZmZ d dlmZm Z m Z d dlmZ d dl mZ er�d dlmZmZmZmZmZ d dlmZ er�d d lmZ nd d lmZ dZddd gZG dd� de�ZG dd� de�ZdS )� )�absolute_importN)� iteritems�iterkeys� itervalues)�HashMismatch�HashMissing�InstallationError)�read_chunks)�MYPY_CHECK_RUNNING)�Dict�List�BinaryIO�NoReturn�Iterator)�PY3)�_Hash)�_hash�sha256�sha384�sha512c @ sf e Zd ZdZddd�Zdd� Zedd� �Zd d � Zdd� Z d d� Z dd� Zdd� Zdd� Z dd� ZdS )�HasheszaA wrapper that builds multiple hashes at once and checks them against known-good values Nc C s |dkri n|| _ dS )zo :param hashes: A dict of algorithm names pointing to lists of allowed hex digests N)�_allowed)�self�hashes� r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/hashes.py�__init__) s zHashes.__init__c sf t |t�stS |s�S �s|S i }x:t|j�D ],\� }� �jkrBq.� �fdd�|D �|� <