Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
alt
/
python36
/
lib
/
python3.6
/
site-packages
/
pip
/
_internal
/
utils
/
__pycache__
[ HOME ]
Exec
Submit
File Name : hashes.cpython-36.pyc
3 �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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/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 �|� <