文件操作 - parsehtml.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/openid/yadis/__pycache__/parsehtml.cpython-311.pyc
编辑文件内容
� |=�^� � � � d dgZ ddlmZ ddlZddlZddlZddlmZ dZ G d� de � � Z G d � de � � Zej ej z ej z Zd Z ej ee� � Zd� Zd� Z G d � de� � Zd� ZdS )�findHTMLMeta�MetaNotFound� )� HTMLParserN)�YADIS_HEADER_NAMEi @ c � � e Zd ZdZdS )� ParseDonez�Exception to hold the URI that was located when the parse is finished. If the parse finishes without finding the URI, set it to None.N��__name__� __module__�__qualname__�__doc__� � �8/usr/lib/python3/dist-packages/openid/yadis/parsehtml.pyr r s � � � � � � � � � r r c � � e Zd ZdZdS )r z[Exception to hold the content of the page if we did not find the appropriate <meta> tagNr r r r r r s � � � � � �"� "� "� "r zO & (?: \#x (?P<hex> [a-f0-9]+ ) | \# (?P<dec> \d+ ) | (?P<word> \w+ ) ) ;c � � | j dk r$t | � d� � d� � }nr| j dk r#t | � d� � � � }nD| j dk sJ �t j j � | � d� � � � }|�| � � � S t |� � S )N�hex� �dec�word)� lastgroup�int�group�html�entities�name2codepoint�get�chr)�mo� codepoints r �substituteMOr! ( s� � � �|�u�����������,�,� � � ��� � ��������(�(� � ��|�v�%�%�%�%��M�0�4�4�R�X�X�f�5E�5E�F�F� ����x�x�z�z���9�~�~�r c �B � t � t | � � S �N)�ent_re�subr! )�ss r �substituteEntitiesr'