Hacked By AnonymousFox
�
i��f�] � �8 � d Z dZddlZddlZddlZddlZddlZddlZddlm Z ej
� � 5 ej d� � ej � � d p ej
� � d Ze� � � Zddd� � n# 1 swxY w Y n$# e$ rZdej v rdZndZY dZ[ndZ[w dZY nxY w ej e� � n# eef$ r dZY nw xY w G d � d
e� � Z G d� de� � Zd
� Zd� Z G d� de � � Z G d� de � � Z G d� d� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z! G d� de� � Z" G d� d e� � Z# G d!� d"e� � Z$ G d#� d$e� � Z%dS )%z
I/O classes provide a uniform API for low-level input and output. Subclasses
exist for a variety of input/output mechanisms.
�reStructuredText� N)�
TransformSpec�ignore� zunknown locale: UTF-8�utf-8c � � e Zd ZdS )�
InputErrorN��__name__�
__module__�__qualname__� � �k/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/docutils/io.pyr r 3 � � � � � � � � r r c � � e Zd ZdS )�OutputErrorNr
r r r r r 4 r r r c � � t j | j � � t j |� � k S # t t t
f$ r Y dS w xY w)aN Test, whether the encoding of `stream` matches `encoding`.
Returns
:None: if `encoding` or `stream.encoding` are not a valid encoding
argument (e.g. ``None``) or `stream.encoding is missing.
:True: if the encoding argument resolves to the same value as `encoding`,
:False: if the encodings differ.
N)�codecs�lookup�encoding�LookupError�AttributeError� TypeError)�streamr s r �check_encodingr 7 sQ � ���}�V�_�-�-���x�1H�1H�H�H�����3� � � ��t�t����s �.1 �A�Ac �$ � | j j � d| � �S )z5Return string representation of Exception `err`.
z: )� __class__r )�errs r �error_stringr G s � � �m�$�-�-��-�-�-r c � � e Zd ZdZdZdZ dd�Zd� Zd� Zd� Z e
j d � � Z e
j d
fe
j dfe
j dffZ d
� Zd� ZdS )�Inputah
Abstract base class for input wrappers.
Docutils input objects must provide a `read()` method that
returns the source, typically as `str` instance.
Inheriting `TransformSpec` allows input objects to add
"transforms" and "unknown_reference_resolvers" to the "Transformer".
(Optional for custom input objects since Docutils 0.19.)
�inputN�strictc �p � || _ || _ || _ || _ |s| j | _ d | _ d S �N)r �
error_handler�source�source_path�default_source_path�successful_encoding)�selfr( r) r r'