Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
Uñ*WÓG ã @ sp d Z ddlmZ ddlZddlZddlZyddlmZ W n e k
rX ddl
mZ Y nX ddddd d
dgZyeZ
W n ek
r� eefZ
Y nX ejd dkZejdƒZejdƒZejdƒZejZd
d„ Zdd„ Zejddd�Zdd„ ZejdƒZejdƒZG dd„ deƒZ G dd „ d e ƒZ!d#dd
„Z"d$dd„Z#G dd„ de$ƒZ%dd„ Z&d d!iZ'e(d"k�rlddlZej)ƒ dS )%aÑ
lxml-based doctest output comparison.
Note: normally, you should just import the `lxml.usedoctest` and
`lxml.html.usedoctest` modules from within a doctest, instead of this
one::
>>> import lxml.usedoctest # for XML output
>>> import lxml.html.usedoctest # for HTML output
To use this module directly, you must call ``lxmldoctest.install()``,
which will cause doctest to use this in all subsequent calls.
This changes the way output is checked and comparisons are made for
XML or HTML-like content.
XML or HTML content is noticed because the example starts with ``<``
(it's HTML if it starts with ```` or include an ``any``
attribute in the tag. An ``any`` tag matches any tag, while the
attribute matches any and all attributes.
When a match fails, the reformatted example and gotten text is
displayed (indented), and a rough diff-like output is given. Anything
marked with ``+`` is in the output but wasn't supposed to be, and
similarly ``-`` means its in the example but wasn't in the output.
You can disable parsing on one line with ``# doctest:+NOPARSE_MARKUP``
é )ÚetreeN)ÚescapeÚ
PARSE_HTMLÚ PARSE_XMLÚNOPARSE_MARKUPÚLXMLOutputCheckerÚLHTMLOutputCheckerÚinstallÚtemp_installé c C s | d krd S | j ƒ S d S )N)Ústrip)Úv© r ú&/usr/lib64/python3.6/doctestcompare.pyr ? s r c C s t jd| ƒS )Nú )Ú_norm_whitespace_reÚsub)r
r r r Únorm_whitespaceE s r FT)ZrecoverZremove_blank_textc C s t j| tƒS )N)r Z
fromstringÚ_html_parser)Úhtmlr r r Úhtml_fromstringJ s r z^<[^>]+ (at|object) z[ \t\n][ \t\n]+c
@ s e Zd Zd0Zdd„ Zd
d„ Zdd„ Zdd„ Zdd„ Zdd„ Z dd„ Z
dd„ Zd1dd„Zd2dd „Z
d3d!d"„Zd#d$„ Zd%d&„ Zd'd(„ Zd)d*„ Zd+d,„ Zd4d-d.„Zd/S )5r ÚparamÚimgÚareaÚbrÚbasefontÚinputÚbaseÚmetaÚlinkÚcolc C s t jS )N)r ÚXML)Úselfr r r Úget_default_parserW s z$LXMLOutputChecker.get_default_parserc C sš t | dd ƒ}|d k r | j}|} ntj}| j|||ƒ}|sF|| |||ƒS y||ƒ}W n tjk
rh dS X y||ƒ}W n tjk
rŒ dS X | j||ƒS )NÚ_temp_override_selfF)ÚgetattrÚ_temp_call_super_check_outputÚ
OutputCheckerÚcheck_outputÚ
get_parserr ÚXMLSyntaxErrorÚcompare_docs) r" ÚwantÚgotÚoptionflagsZalt_selfZsuper_methodÚparserÚwant_docÚgot_docr r r r( Z s$ zLXMLOutputChecker.check_outputc C st d }t |@ rd S t|@ rt}nRt|@ r.tj}nB|jƒ jƒ jdƒrT|jƒ jdƒrTt}n| j |ƒrp| j |ƒrp| j
ƒ }|S )Nz