File: //usr/lib/python3/dist-packages/genshi/__pycache__/input.cpython-310.pyc
o
!�b�@ � @ s� d Z ddlmZ ddlZddlmZ ddlZddlmZ m
Z ddlm
Z
mZmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZ ddlmZmZ g d �Zd
Z dd� Z!G d
d� de"�Z#G dd� de$�Z%dd� Z&G dd� dej'e$�Z'ddd�Z(dd� Z)dS )zOSupport for constructing markup streams from files, strings, or other
sources.
� )�chainN)�expat)�
html_entities�html_parser)�Attrs�QName�Stream�
stripentities)�START�END�XML_DECL�DOCTYPE�TEXT�START_NS�END_NS�START_CDATA� END_CDATA�PI�COMMENT)�StringIO�BytesIO)�ET�
ParseError� XMLParser�XML�
HTMLParser�HTMLzrestructuredtext enc c s� � t | j�d��}tdd� | �� D ��}t||fdfV | jr&t| jdfV | D ]}t|�D ]}|V q.q(t |dfV | j
rGt| j
dfV dS dS )z�Convert a given ElementTree element to a markup stream.
:param element: an ElementTree element
:return: a markup stream
�{c S s"