Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/genshi/__pycache__/ |
Upload File : |
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"