/opt/cloudlinux/venv/lib/python3.11/site-packages/lxml/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/lxml/__pycache__/doctestcompare.cpython-311.pyc (27203B)
§
üžämW˜§ã ó< — d Z ddlmZ ddlZddlZddlZ ddlmZ n# e $ r ddl
mZ Y nw xY wg d¢Z eZ
n# e$ r eefZ
Y nw xY wej d dk Z ej d¦ « Z ej d¦ « Z ej d ¦ « Zej Zd
„ Zd„ Z ej dd
¬¦ « Zd„ Z ej d¦ « Z ej d¦ « Z G d„ de¦ « Z G d„ de ¦ « Z!dd„Z"dd„Z# G d„ de$¦ « Z%d„ Z&ddiZ'e(dk rddlZ ej) ¦ « dS 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é r r r c ó2 — | €d S | ¦ « S ©N)Ústrip©Úvs úg/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/lxml/doctestcompare.pyr r ? s € Ø€y؈tà�wŠw‰yŒyÐó c ó8 — t d| ¦ « S )Nú )Ú_norm_whitespace_reÚsubr s r Únorm_whitespacer E s € Ý×"Ò" 3¨Ñ*Ô*Ð*r FT)ÚrecoverÚremove_blank_textc ó6 — t j | t ¦ « S r )r Ú
fromstringÚ_html_parser©Úhtmls r Úhtml_fromstringr J s € ÝÔ˜D¥,Ñ/Ô/Ð/r z^<[^>]+ (at|object) z[ \t\n][ \t\n]+c ó€ — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z
d „ Zdd„Zdd
„Z
dd„Zd„ Zd„ Zd„ Zd„ Zd„ Zdd„ZdS )r )
ÚparamÚimgÚareaÚbrÚbasefontÚinputÚbaseÚmetaÚlinkÚcolc ó — t j S r )r ÚXML©Úselfs r Úget_default_parserz$LXMLOutputChecker.get_default_parserW s
€ ÝŒyÐr c óZ — t | dd ¦ « }|�
| j }|} nt j }| |||¦ « }|s || |||¦ « S ||¦ « }n# t
j $ r Y dS w xY w ||¦ « }n# t
j $ r Y dS w xY w| ||¦ « S )NÚ_temp_override_selfF)ÚgetattrÚ_temp_call_super_check_outputÚ
OutputCheckerÚcheck_outputÚ
get_parserr ÚXMLSyntaxErrorÚcompare_docs) r/ ÚwantÚgotÚoptionflagsÚalt_selfÚsuper_methodÚparserÚwant_docÚgot_docs r r6 zLXMLOutputChecker.check_outputZ só € Ý˜4Ð!6¸Ñ=Ô=ˆØÐØÔ=ˆL؈DˆDå(Ô5ˆLØ—’ s¨KÑ8Ô8ˆØð .Ø�<Ø�d˜C ñ.ô .ð
.ð Ø�v˜d‘|”|ˆHˆHøÝÔ#ð ð ð Ø�5�5ð øøøð Ø�f˜S‘k”kˆGˆGøÝÔ#ð ð ð Ø�5�5ð øøøà× Ò ¨7Ñ3Ô3Ð3s$ ÁA ÁA1Á0A1Á5B ÂBÂBc óÀ — d }t |z rd S t |z rt }n½t |z r
t j }n¦| ¦ « ¦ « d¦ « r/| ¦ « d¦ « rt }n>| |¦ « r)| |¦ « r|
¦ « }|S )Nz