File: //usr/lib/python3/dist-packages/debian/__pycache__/debian_support.cpython-38.pyc
U
���ak � @ s� d Z ddlZddlZddlZzLddlmZmZmZmZm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZ W n ek
r| Y nX ddlmZ zddlZe�� dZW n ek
r� dZY nX zddlZejZW n ek
r� dd� ZY nX zddlZejZ W n ek
�r d d
� Z Y nX G dd� de!�Z"G d
d� de#�Z$G dd� de$�Z%G dd� de$�Z&e�rvG dd� de%�Z'nG dd� de&�Z'dd� Z(G dd� d�Z)G dd� d�Z*G dd� de*�Z+dd� Z,ee,�Z-e,� Z.d6d d!�Z/ee/�Z0[-[,d"d#� Z1d$d%� Z2ee2�Z3d&Z4e�5e4�Z6e�5e4�7d'��Z8d7d(d)�Z9ee9�Z:d*d+� Z;ee;�Z<d8d,d-�Z=ee=�Z>d.d/� Z?ee?�Z@d0d1� ZAeeA�ZBd9d2d3�ZCeeC�ZDd4d5� ZEeeE�ZFdS ):z2 Facilities to deal with Debian-specific metadata � N)�Any�AnyStr�BinaryIO�Dict�Iterable�Iterator� Generator�List�Match�NoReturn�Optional�Pattern�Text�TextIO�Tuple�Union)�function_deprecated_byTFc G s t d��d S �Nz�Built-in sha1 implementation not found; cannot use hashlib implementation because it depends on OpenSSL, which may not be linked with this library due to license incompatibilities��NotImplementedError��args� r �7/usr/lib/python3/dist-packages/debian/debian_support.py�new_sha1? s �r c G s t d��d S r r r r r r �
new_sha256N s �r c s@ e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zee�Z � Z
S )
�
ParseErrorz�An exception which is used to signal a parse failure.
Attributes:
filename - name of the file
lineno - line number in the file
msg - error message
c s4 t |t�st�|| _|| _|| _tt| ��| � d S �N) �
isinstance�int�AssertionError�filename�lineno�msg�superr �__init__)�selfr! r"