Current File : //usr/lib/python3/dist-packages/debian/__pycache__/debian_support.cpython-312.pyc |
�
Cf�c,k � � � d Z ddlZddlZddlZ ddlmZmZmZmZm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZ ddlmZ ddlZ ej2 � dZ ddlZej: Z ddlZej@ Z!ddl"Z#e#jH jJ Z% G d � d
e&� Z' G d� de(� Z) G d
� de)� Z* G d� de)� Z+er G d� de*� Z,n G d� de+� Z,d� Z- G d� d� Z. G d� d� Z/ G d� de/� Z0d� Z1 ee1� Z2 e1� Z3d(d�Z4 ee4� Z5[2[1d� Z6d� Z7 ee7� Z8dZ9 ejt e9� Z; ejt e9jy d � � Z= d(d!�Z> ee>� Z?d"� Z@ ee@� ZAd)d#�ZB eeB� ZCd$� ZD eeD� ZEd%� ZF eeF� ZGd*d&�ZH eeH� ZId'� ZJ eeJ� ZKy# e$ r Y ��w xY w# ej6 $ r dZY ��xw xY w# e$ r dZY ���w xY w# e$ r d� ZY ���w xY w# e$ r d� Z!Y ���w xY w)+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 � � t d� ��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��argss �7/usr/lib/python3/dist-packages/debian/debian_support.py�new_sha1r D � � �!�
!�"� "� c � � t d� �r r r s r �
new_sha256r S r r c �D � � e Zd ZdZ� fd�Zd� Zd� Zd� Z ee� Z � xZ
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 �z �� t |t � sJ �|| _ || _ || _ t
t | � | � y �N)�
isinstance�int�filename�lineno�msg�superr! �__init__)�selfr&