kr.motd.maven.sphinx.dist.lxml.doctestcompare$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1v f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ ?
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``
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
lxml java/lang/String etree org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ sys & importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; ( )
* re , doctest . html 0 escape 2 html_escape 4 org/python/core/Py 6 setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; 8 9
7 : ImportError < getname .(Ljava/lang/String;)Lorg/python/core/PyObject; > ?
@ org/python/core/PyException B match (Lorg/python/core/PyObject;)Z D E
C F cgi H java/lang/Throwable J org/python/core/PyList L org/python/core/PyObject N
PARSE_HTML P PARSE_XML R NOPARSE_MARKUP T LXMLOutputChecker V LHTMLOutputChecker X install Z temp_install \ ([Lorg/python/core/PyObject;)V ^ _
M ` __all__ b
basestring d _basestring f NameError h org/python/core/PyTuple j str l bytes n
k ` version_info q __getattr__ s ?
O t
newInteger (I)Lorg/python/core/PyInteger; v w
7 x __getitem__ 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; z {
O | _ge ~ {
O _IS_PYTHON_3 ? register_optionflag ? __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
O ?
OutputChecker ? EmptyObjects [Lorg/python/core/PyObject; ? ? 7 ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ? strip$1 getlocal (I)Lorg/python/core/PyObject; ? ?
? None ? getglobal ? ?
? _is ? {
O ? __nonzero__ ()Z ? ?
O ? f_lasti I ? ? ? strip ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
O ? lxml/doctestcompare$py ? Lorg/python/core/PyCode; ? ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ^ ?
? ? norm_whitespace$2 _norm_whitespace_re ? sub ? ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
O ? ? ? ? ? norm_whitespace ?
HTMLParser ? False ? True ? recover ? remove_blank_text ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
O ? _html_parser ? html_fromstring$3
fromstring ? ? ? ? ? html_fromstring ? compile ? ^<[^>]+ (at|object) ? _repr_re ? [ \t\n][ \t\n]+ ? LXMLOutputChecker$4
__module__ ? __name__ ? param ? img ? area ? br ? basefont ? input ? base ? meta ? link ? col ?
empty_tags ? get_default_parser$5 XML ? ? ? ? get_default_parser check_output$6 getattr _temp_override_self ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
O (ILorg/python/core/PyObject;)V #
_isnot {
O _temp_call_super_check_output check_output
get_parser __not__ ()Lorg/python/core/PyObject;
O ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
O XMLSyntaxError compare_docs" ? ?$ get_parser$7 _and' {
O( lower*
startswith,