�
)uyc�z � �� � d Z ddlZddlZddlZddlZddlZ ddlmZmZm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZ ed Zed Zn
# e$ r dZY nw xY wddlmZmZmZmZmZ ddlmZm Z dd lm!Z! n# e$ r Y nw xY wd
Z" e#e"g� � Z$ ej% e&� � Z' G d� de(� � Z) G d
� de)� � Z* G d� de)e+� � Z,d� Z- G d� de.� � Z/d� Z0 G d� de.� � Z1 G d� de.� � Z2d� Z3d� Z4d� Z5d� Z6 G d� d ej7 dd� � � � Z8d � Z9 G d!� d"e:� � Z; G d#� d$e;�%� � Z< G d&� d'e<� � Z= G d(� d)e<� � Z> G d*� d+e<� � Z?dS ),a9 Utilities for parsing and creating machine-readable debian/copyright files.
The specification for the format (also known as DEP5) is available here:
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Start from the Copyright docstring for usage information.
Copyright Classes
-----------------
� N)�Any�Callable� FrozenSet�IO�Iterable�Iterator�List�Optional�Pattern�Text�Tuple�Union�
TYPE_CHECKING�cast)�FilesParagraph�LicenseParagraph)�Headerr r F)�parse_deb822_file�Deb822ParagraphElement�Deb822FileElement�'Deb822NoDuplicateFieldsParagraphElement�SyntaxOrParseError)�RestrictedField�RestrictedFieldError)�Deb822ValueTypezBhttps://www.debian.org/doc/packaging-manuals/copyright-format/1.0/c � � e Zd ZdZdS )�Errorz)Base class for exceptions in this module.N��__name__�
__module__�__qualname__�__doc__� � �2/usr/lib/python3/dist-packages/debian/copyright.pyr r S s � � � � � �3�3�3�3r$ r c � � e Zd ZdZdS )�NotMachineReadableErrorzFRaised when the input is not a machine-readable debian/copyright file.Nr r# r$ r% r' |