← Back
Editing: debian_support.cpython-38.pyc
U &]�^�[ � @ s` d Z ddlmZmZ ddlZddlZddlZz,ddlmZm Z m Z mZmZm Z mZmZ W n ek rl Y nX ddlmZ zddlZe�� dZW n ek r� dZY nX zddlZejZW nF ek �r zddlZejZW n ek r� dd � ZY nX Y nX G d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�Z e�r^G 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(d2dd �Z)ee)�Z*['[&d!d"� Z+ee+�Z,e�-d#�Z.d3d$d%�Z/ee/�Z0d&d'� Z1ee1�Z2d(d)� Z3ee3�Z4d*d+� Z5ee5�Z6d,d-� Z7ee7�Z8d4d.d/�Z9ee9�Z:d0d1� Z;ee;�Z<dS )5z2 Facilities to deal with Debian-specific metadata � )�absolute_import�print_functionN)�Any�Dict�Iterator�List�Optional�Pattern�Text�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 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 r �� __class__r r r R s zParseError.__init__c C s | j S r )r �r r r r �__str__Y s zParseError.__str__c C s d| j | j| jf S )NzParseError(%r, %d, %r))r r r r r r r �__repr__\ s �zParseError.__repr__c C s&