
kr.motd.maven.sphinx.dist.lxml.html.html5parser$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
???? 1 f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ ?
An interface to html5lib that mimics the lxml.html interface.
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
sys org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
string " html5lib $ java/lang/String &
HTMLParser (
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; * +
, _HTMLParser . html5lib.treebuilders.etree_lxml 0 TreeBuilder 2 lxml 4 etree 6 lxml.html 8 Element : XHTML_NAMESPACE < _contains_block_level_tag >
basestring @ getname .(Ljava/lang/String;)Lorg/python/core/PyObject; B C
D _strings F org/python/core/Py H setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; J K
I L NameError N org/python/core/PyException P match (Lorg/python/core/PyObject;)Z R S
Q T org/python/core/PyTuple V org/python/core/PyObject X bytes Z str \ ([Lorg/python/core/PyObject;)V ^ _
W ` java/lang/Throwable b urllib2 d urlopen f ImportError h urllib.request j urlparse l urllib.parse n HTMLParser$1
__module__ q __name__ s *An html5lib HTML parser with lxml as tree. u False w org/python/core/PyFunction y f_globals Lorg/python/core/PyObject; { | }
__init__$2 getglobal ? C
? __init__ ? __getattr__ ? C
Y ? getlocal (I)Lorg/python/core/PyObject; ? ?
? strict ? tree ?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
Y ? f_lasti I ? ? ? None ? | I ? lxml/html/html5parser$py ? Lorg/python/core/PyCode; ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ^ ?
z ? getf_locals ()Lorg/python/core/PyObject; ? ?
? p ? ? ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
I ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? XHTMLParser ? _XHTMLParser ?
XHTMLParser$3 +An html5lib XHTML Parser with lxml as tree. ?
__init__$4 ? ? ? ? ? ? ? ? __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
Y ? xhtml_parser ? EmptyObjects [Lorg/python/core/PyObject; ? ? I ? _find_tag$5 find ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
Y ? (ILorg/python/core/PyObject;)V ?
? ? _isnot 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
Y ? __nonzero__ ()Z ? ?
Y ? {%s}%s ? _mod ? ?
Y ? ? ? ? ? _find_tag ? document_fromstring$6 ?
Parse a whole document into a string.
If `guess_charset` is true, or if the input is not Unicode but a
byte string, the `chardet` library will perform charset guessing
on the string.
?
isinstance ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
Y ? __not__ ? ?
Y ? TypeError ? string required ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
I ? _is ? ?
Y ? html_parser ? org/python/core/PyDictionary ?
? ` True ?
useChardet __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V
Y parse getroot ? ? ? document_fromstring
fragments_fromstring$7`Parses several HTML elements, returning a list of elements.
The first item in the list may be a string. If no_leading_text is true,
then it will be an error if there is leading text, and it will always be
a list of only elements.
If `guess_charset` is true, the `chardet` library will perform charset
guessing on the string.
parseFragment div
newInteger (I)Lorg/python/core/PyInteger;
I __getitem__ ?
Y strip ParserError There is leading text: %r! __delitem__ (Lorg/python/core/PyObject;)V#$
Y% ? ?' fragments_fromstring) fragment_fromstring$8?Parses a single HTML element; it is an error if there is more than
one element, or if anything but whitespace precedes or follows the
element.
If 'create_parent' is true (or is a tag name) then a parent node
will be created to encapsulate the HTML in a single element. In
this case, leading or trailing text is allowed.
If `guess_charset` is true, the `chardet` library will perform charset
guessing on the string.
, bool.
guess_charset0 parser2 no_leading_text4 g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ?6
Y7 text9 __setattr__;
Y< extend> No elements found@ lenB _gtD ?
YE Multiple elements foundG tailI Element followed by text: %rK+ ? ?M fragment_fromstringO fromstring$9?Parse the html, returning a single element/document.
This tries to minimally parse the chunk of text, without knowing if it
is a fragment or a document.
'base_url' will set the document's base_url attribute (and the tree's
docinfo.URL)
If `guess_charset` is true, or if the input is not Unicode but a
byte string, the `chardet` library will perform charset guessing
on the string.
R __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;TU
YV decodeX asciiZ replace\ lstrip^ lower`
startswithb