Current File : //proc/3/root/proc/2/root/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyc
�
�m}Qc@s�dZddlZddlZyddlmZWn!ek
rUddlmZnXddlZddlm Z ddl
mZddlm
Z
yddlmZWn!ek
r�ddlmZnXyeWn!ek
r�dd lmZnXyeWnek
reZnXyeWnek
r9eZnXyeWnek
raeefZnXd
�Zddd
ddddddddddddddgZdZe jddied6�Ze jddied6�Ze jd died6�Z e jd!�Z!e jd"�Z"e jd#�Z#ej$d$d%d&d'ej%�Z&ej$d(�Z'e jd)died6�Z(ej$d*�Z)d+�Z*d,�Z+d-�Z,d.e-fd/��YZ.d0e-fd1��YZ/e/dd2e0�Z1e/dd2e0�Z2e/dd2e3�Z4e/dd2e3�Z5e/dd2e0�Z6e/dd2e3�Z7d3e j8e.fd4��YZ9d5e j:e.fd6��YZ;d7e j<e.fd8��YZ=d9e j>e.fd:��YZ?d;e j@fd<��YZAej$ed=�ej%�jBZCej$d=jDd>�ej%�jBZEeFd?�ZGe0eFeFd@�ZHe0eFeFdA�ZIeFeFdB�ZJeFeFdC�ZKdD�ZLdE�ZMdFe;fdG��YZNeNeAjOdH<eFeFdI�ZPdJ�ZQdKefdL��YZRdMe-fdN��YZSdOe-fdP��YZTdQeTe;fdR��YZUeUeAjOdS<dTeTe;fdU��YZVeVeAjOdV<dWe
fdX��YZWdYeXfdZ��YZYd[eXfd\��YZZd]e
fd^��YZ[d_eTe;fd`��YZ\e\eAjOda<dbe;fdc��YZ]e]eAjOdd<de�Z^df�Z_ej$dg�j`Zaej$dgjDdh��j`Zbe0e0eFdie3eFdj�Zceecj�ec_eFdk�Zddle jefdm��YZedne jffdo��YZgdp�Zhee�Zieg�ZjdS(qs.The ``lxml.html`` tool set for HTML handling.
i����N(turljoin(tetree(tdefs(tSetMixin(tMutableMapping(t DictMixin(tSetcCsi|s
|Sddl}|jddkrDtjdtj�j}ntjdtj�j}|d|�S(Ni����iis^(\s*)u's^(\s*)b's\1'(tsystversion_infotretcompiletMtsub(tsRR((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__fix_docstringGstdocument_fromstringtfragment_fromstringtfragments_fromstringt
fromstringttostringtElementRtopen_in_browsertsubmit_formtfind_rel_linkst
find_classtmake_links_absolutetresolve_base_hreft iterlinkst
rewrite_linkstparseshttp://www.w3.org/1999/xhtmls9descendant-or-self::a[@rel]|descendant-or-self::x:a[@rel]t
namespacestxs7descendant-or-self::option|descendant-or-self::x:options3descendant-or-self::form|descendant-or-self::x:formstdescendant-or-self::*[@class and contains(concat(' ', normalize-space(@class), ' '), concat(' ', $class_name, ' '))]sdescendant-or-self::*[@id=$id]sstring()surl\((s["][^"]*["]|s['][^']*[']|s[^)]*)\)s@import "(.*?)"s%//label[@for=$id]|//x:label[@for=$id]s[^ ]+cCsc|d dkr |ddks@|d dkrU|ddkrU|dd!|dfS||fSdS(Nit"i����t'((R
tpos((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_unquote_matchis@cCsFt|t�rt|dd�St|t�r>t|dt�S|SdS(s1Convert the result back into the input type.
tencodingsutf-8N(t
issubclasstbytesRtunicode(ttyptresult((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_transform_resultos
cCsTt|t�rP|ddkrP|dtt�d!tkrP|jd�dSn|S(Nit{it}i����(t
isinstancet
basestringtlentXHTML_NAMESPACEtsplit(ttag((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_nonsys-t HtmlMixincBs(eZd�Zeedej�Zd�Zeedej�Zd�Zeedej�Zd�Zeedej�Zd�Zd�Z d�Z
eee e
dej�Zd�Zd �Z
d
�Zd�Zd�Zd
�Zdd�Zded�Zd�Zd�Zedd�ZRS(cCs|j�jjS(s�
Returns the base URL, given when the page was parsed.
Use with ``urlparse.urljoin(el.base_url, href)`` to get
absolute URLs.
(tgetroottreetdocinfotURL(tself((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytbase_url�stdoccCs
t|�S(s0
Return a list of all the forms
(t_forms_xpath(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytforms�scCs|jdditd6�dS(st
Return the <body> element. Can be called from a child element
to get the document's head.
s//body|//x:bodyRRi(txpathR0(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytbody�scCs|jdditd6�dS(su
Returns the <head> element. Can be called from a child
element to get the document's head.
s//head|//x:headRRi(R=R0(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pythead�scCsA|jd�}|sdSt|d|�}|s5dS|dSdS(sN
Get or set any <label> element associated with this element.
tidiN(tgettNonet_label_xpath(R8R@R)((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_label__get�scCsd|jd�}|s(td|��nt|j�dkrPtd|��n|jd|�dS(NR@s9You cannot set a label for an element (%r) that has no idtlabels5You can only assign label to a label element (not %r)tfor(RAt TypeErrorR3R2tset(R8RER@((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_label__set�s
cCs&|j}|dk r"|jd=ndS(NRF(RERBtattrib(R8RE((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_label__del�s cCs�|j�}|dk st�|jrw|j�}|dkr[|jpKd|j|_qw|jpgd|j|_n|j|�dS(s�
Removes this element from the tree, including its children and
text. The tail text is joined to the previous element or
parent.
tN(t getparentRBtAssertionErrorttailtgetpreviousttexttremove(R8tparenttprevious((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt drop_tree�s cCs-|j�}|dk st�|j�}|jr�t|jt�r�|dkrm|jp]d|j|_q�|jpyd|j|_n|jrt |�r�|d}|jp�d|j|_q|dkr�|jp�d|j|_q|jp�d|j|_n|j
|�}||||d+dS(s[
Remove the tag, but not its children or text. The children and text
are merged into the parent.
Example::
>>> h = fragment_fromstring('<div>Hello <b>World!</b></div>')
>>> h.find('.//b').drop_tag()
>>> print(tostring(h, encoding=unicode))
<div>Hello World!</div>
RLi����iN(RMRBRNRPRQR-R2R.ROR/tindex(R8RSRTtlastRV((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytdrop_tag�s
cCsD|j�}gt|�D]'}|jd�j�|kr|^qS(s]
Find any links like ``<a rel="{rel}">...</a>``; returns a list of elements.
trel(tlowert_rel_links_xpathRA(R8RYtel((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�scCst|d|�S(s>
Find any elements with the given class name.
t
class_name(t_class_xpath(R8R]((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�scGsJyt|d|�dSWn+tk
rE|r6|dSt|��nXdS(s�
Get the first element in a document with the given id. If none is
found, return the default argument if provided or raise KeyError
otherwise.
Note that there can be more than one element with the same id,
and this isn't uncommon in HTML documents found in the wild.
Browsers return only the first match, and this function does
the same.
R@iN(t _id_xpatht
IndexErrortKeyError(R8R@tdefault((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytget_element_by_id�s
cCs
t|�S(sT
Return the text content of the tag (and the text in any children).
(t_collect_string_content(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyttext_contentsthtmlcCs&ddlm}||d|�|�S(s
Run the CSS expression on this element and its children,
returning a list of the results.
Equivalent to lxml.cssselect.CSSSelect(expr, translator='html')(self)
-- note that pre-compiling the expression can provide a substantial
speedup.
i����(tCSSSelectort
translator(tlxml.cssselectRg(R8texprRhRg((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt cssselects
csf�dkr3|j��dkr3td��q3n|rF|j�n�fd�}|j|�dS(s�
Make all links in the document absolute, given the
``base_url`` for the document (the full URL where the document
came from), or if no ``base_url`` is given, then the ``.base_url`` of the document.
If ``resolve_base_href`` is true, then any ``<base href>``
tags in the document are used *and* removed from the document.
If it is false then any such tag is ignored.
s3No base_url given, and the document has no base_urlcs
t�|�S(N(R(thref(R9(s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt link_repl:sN(RBR9RGRR(R8R9RRm((R9s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR)s
cCsmd}|jdditd6�}x'|D]}|jd�}|j�q)W|sVdS|j|dt�dS(s�
Find any ``<base href>`` tag in the document, and apply its
values to all links found in the document. Also remove the
tag once it has been applied.
s//base[@href]|//x:base[@href]RRRlNR(RBR=R0RARURtFalse(R8t base_hreftbasetagstb((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR>s
c
csotj}x_|j�D]Q}|j}t|j�}|dkrxxM|D]*}||krG||||dfVqGqGWn|dkr�d}d|kr�|jd�}|d|dfVnx[dD]S}||kr�|j|�}|dk r�t||�}n|||dfVq�q�Wd|kr�xgt j
|jd��D]J}|jd�}|dk rot||�}n|d||j�fVq<Wq�n|dkr�|jd�p�d } | j
�d
kr�|d|jd�dfVq�n|dkr�|jr�gtj
|j�D]'}t|jd
�|jd
��^qgtj
|j�D]$}|jd
�|jd
�f^qH}
|
r�g|
D]\}}||f^q�}
|
j�|
j�x(|
D]\}}|d||fVq�Wq�nd|krttj
|d��}
|
rgxV|
ddd�D]>}t|jd
�|jd
��\}}|d||fVqWqgqqWdS(s
Yield (element, attribute, link, pos), where attribute may be None
(indicating the link is in the text). ``pos`` is the position
where the link occurs; often 0, but sometimes something else in
the case of links in stylesheets or style tags.
Note: <base href> is *not* taken into account in any way. The
link you get is exactly the link in the document.
Note: multiple links inside of a single text string or
attribute value are returned in reversed order. This makes it
possible to replace or delete them from the text string value
based on their reported text positions. Otherwise, a
modification at one text position can change the positions of
links reported later on.
tobjectitcodebasetclassidtdatatarchivetparamt valuetypeRLtreftvaluetstyleiNi����(Rtsdata(Rt
link_attrstiterRJR3R2RBRARt_archive_retfinditertgrouptstartRZRQt_css_url_reR#t_css_import_retsorttreversetlist(
R8R|R\tattribsR2RJRsRztmatchRxturlsturlR�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRMs\
! :;%
'cCs[|dk r"|j|d|�n|r5|j�nx|j�D]\}}}}||j��}||krxqBn|dkr�|dkr�d|_qB|j|=qBn|dkr�|j| ||j|t|�} | |_qB|j|}
|r&t|
�t|�kr&||j|<qB|
| ||
|t|�} | |j|<qBWdS(s�
Rewrite all the links in the document. For each link
``link_repl_func(link)`` will be called, and the return value
will replace the old link.
Note that links may not be absolute (unless you first called
``make_links_absolute()``), and may be internal (e.g.,
``'#anchor'``). They can also be values like
``'mailto:email'`` or ``'javascript:expr'``.
If you give ``base_href`` then all links passed to
``link_repl_func()`` will take that into account.
If the ``link_repl_func`` returns None, the attribute or
tag text will be removed completely.
RRLN(RBRRRtstripRQRJR/(R8tlink_repl_funcRRoR\RJtlinkR"tnew_linktnewtcur((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s*
&
N(t__name__t
__module__R9tpropertyt__doc__R<R>R?RDRIRKRERURXRRRcReRkRBtTrueRRRR(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR4s0 Ot_MethodFunccBs&eZdZeed�Zd�ZRS(s5
An object that represents a method on an element as a function;
the function takes either an element or an HTML string. It
returns whatever the function normally returns, or if the function
works in-place (and so returns None) it returns a serialized form
of the resulting document.
cCs.||_||_t||j�j|_dS(N(tnametcopytgetattrR�(R8R�R�tsource_class((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__init__�s cOs�t|�}t|t�rOd|kr=td|j��nt||�}n?d|krm|jd�}n |j}|r�tj|�}nt ||j�}|||�}|dkr�t||�S|SdS(NR�sQThe keyword 'copy' can only be used with element inputs to %s, not a string input(ttypeR-R.RGR�RtpopR�tdeepcopyR�RBR*(R8R:targstkwtresult_typetmake_a_copytmethR)((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__call__�s
(R�R�R�RnR4R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��sR�tHtmlCommentcBseZRS((R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��stHtmlElementcBseZRS((R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��stHtmlProcessingInstructioncBseZRS((R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��st
HtmlEntitycBseZRS((R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��stHtmlElementClassLookupcBs,eZdZiZddd�Zd�ZRS(svA lookup scheme for HTML Element classes.
To create a lookup instance with different Element classes, pass a tag
name mapping of Element classes in the ``classes`` keyword argument and/or
a tag name mapping of Mixin classes in the ``mixins`` keyword argument.
The special key '*' denotes a Mixin class that should be mixed into all
Element classes.
c
Cstjj|�|dkr.|jj�}n|ri}xl|D]d\}}|dkr�xI|j�D]}|j|g�j|�qfWqA|j|g�j|�qAWx[|j �D]J\}}|j
|t�}t||g�} t
|j| i�||<q�Wn||_dS(Nt*(RtCustomElementClassLookupR�RBt_default_element_classesR�tkeyst
setdefaulttappendtitemsRAR�ttupleR�R�t_element_classes(
R8tclassestmixinstmixersR�Rztnt mix_basesR�tbases((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s cCsY|dkr%|jj|j�t�S|dkr5tS|dkrEtS|dkrUtSdS(NtelementtcommenttPItentity(R�RARZR�R�R�R�RB(R8t node_typetdocumentt namespaceR�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytlookup sN(R�R�R�R�RBR�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�ss^\s*<(?:html|!doctype)tasciicKsL|dkrt}ntj|||�}|dkrHtjd��n|S(NsDocument is empty(RBthtml_parserRRtParserError(RftparserR�Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR5s c
Ksq|dkrt}nt|t�rIt|�sbdjd�|}qbnt|�sbd|}nt|d|d||�}t|j �dks�t
�g|D]!}t|j �dkr�|^q�}t|�dks�t
d||f��|d }g} |r5|jr5|jj
�r5tjd
|j��n|jr`|jj
�r`| j|j�n| j|�| S(s~
Parses several HTML elements, returning a list of elements.
The first item in the list may be a string (though leading
whitespace is removed). 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.
base_url will set the document's base_url attribute (and the tree's docinfo.URL)
s<html><body>%s</body></html>R�R�R9RfR>istoo many bodies: %r in %risThere is leading text: %rN(RBR�R-R&t_looks_like_full_html_bytestencodet_looks_like_full_html_unicodeRR3R2RNR/RQR�RR�R�textend(
Rftno_leading_textR9R�R�R:tetbodiesR>telements((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR>s(
.(
c
Ks[|dkrt}nt|�}t|d|d|d||�}|r�t|t�sad}nt|�}|r�t|dt�r�|d|_|d=n|j|�n|S|s�t j
d��nt|�dkrt j
dd jg|D]}t
|�^q����n|d} | jrN| jj�rNt j
d
| j��nd| _| S(s�
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.
base_url will set the document's base_url attribute (and the tree's docinfo.URL)
R�R�R9tdivisNo elements foundisMultiple elements found (%s)s, sElement followed by text: %rN(RBR�tboolRR-R.RRQR�RR�R/tjoint
_element_nameROR�(
Rft
create_parentR9R�R�taccept_leading_textR�tnew_rootR�R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRcs8
/
cKsI|d
krt}nt|t�r3t|�}nt|�}t|d|d||�}|rd|S|jd�}|s�|jdt�}n|r8|d}t |�dkr>x�|dD]r}|j
rt |�r�|djp�d|j
|d_q|j
pd|j
|_
n|j|�|j
�q�Wq>nd
}|jd �} | si|jd
t�} n| r�| d}
t | �dkr�x,| dD]}|
j|�|j
�q�Wn|S|d
kr�|St |�dkr$|j
s�|j
j�r$|djs|djj�r$|dSt|�r<d|_n d|_|S(s
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)
R�R9R>s{%s}bodyiii����RLR?s{%s}headR�tspanN(RBR�R-R&R�R�RtfindallR0R/RQROR�RUR�t_contains_block_level_tagR2(RfR9R�R�tis_full_htmlR:R�R>t
other_bodytheadsR?t
other_head((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�sR
$
," cKs.|dkrt}ntj||d||�S(s=
Parse a filename, URL, or file-like object into an HTML document
tree. Note: this returns a tree, not an element. Use
``parse(...).getroot()`` to get the document root.
You can override the base URL with the ``base_url`` keyword. This
is most useful when parsing from a file-like object.
R9N(RBR�RR(tfilename_or_urlR�R9R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s cCs7x0|j�D]"}t|j�tjkr
tSq
WtS(N(R}R3R2Rt
block_tagsR�Rn(R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��scCs:t|tj�rdSt|t�r)dSt|j�SdS(NR�tstring(R-RtCommentBaseR.R3R2(R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��s
tFormElementcBs�eZdZd�Zeedej�Zd�Zd�Zeeedej�Zd�Zd�Z d�Z
d�Zd �Zee
eede
j�Z
d
�Zd�Zeeedej�ZRS(s&
Represents a <form> element.
cCs
t|�S(s�
Returns an accessor for all the input elements in the form.
See `InputGetter` for more information about the object.
(tInputGetter(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytinputs�sR:cCs
t|j�S(s�
Dictionary-like object that represents all the fields in this
form. You can set values in this dictionary to effect the
form.
(t
FieldsDictR�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_fields__getscCs�|jj�}xC|j�D]5\}}||krD|j|�n||j|<qWx-|D]%}|dkrtq\nd|j|<q\WdS(N(tfieldsR�R�RRRB(R8Rzt prev_keystkey((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_fields__set
s
cCs�|jd�r|jd�S|jd�r<d|jd�St|jjd��}|syt|jjdt��}nt|j|��S(NR�R@t#tforms{%s}form(RAR�R>R}R0tstrRV(R8R<((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_names
cCsLg}x?|jD]4}|j}|s+qnt|j�}|dkr_|j||jf�q|dkr�|j}|jr�xI|D]}|j||f�q�WqD|dk rD|j||jf�qDq|dks�td|��|j r|j
rqn|jd krqn|j}|dk r|j||jf�qqW|S(
s�
Return a list of tuples of the field values for the form.
This is suitable to be passed to ``urllib.urlencode()``.
ttextareatselecttinputsUnexpected tag: %rtsubmittimagetresetN(R�R�sreset(R�R�R3R2R�RztmultipleRBRNt checkabletcheckedR�(R8tresultsR\R�R2Rztv((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pytform_values#s2
cCs?|j}|jd�}|r7|dk r7t||�S|SdS(s:
Get/set the form's ``action`` attribute.
tactionN(R9RARBR(R8R9R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_action__getCs
cCs|jd|�dS(NR�(RH(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_action__setMscCs d|jkr|jd=ndS(NR�(RJ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_action__delOscCs|jdd�j�S(st
Get/set the form's method. Always returns a capitalized
string, and defaults to ``'GET'``
tmethodtGET(RAtupper(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_method__getTscCs|jd|j��dS(NR�(RHR�(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_method__setZs(R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RR�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��s
R�cCs�|j�}|r@t|d�r0|j�}n|j|�n|dkrUt}n|jrj|j}n |j}||j||�S(s%
Helper function to submit a form. Returns a file-like object, as from
``urllib.urlopen()``. This object also has a ``.geturl()`` function,
which shows the URL if there were any redirects.
You can use this like::
form = doc.forms[0]
form.inputs['foo'].value = 'bar' # etc
response = form.submit()
doc = parse(response)
doc.make_links_absolute(response.geturl())
To change the HTTP requester, pass a function as ``open_http`` keyword
argument that opens the URL for you. The function must have the following
signature::
open_http(method, URL, values)
The action is one of 'GET' or 'POST', the URL is the target URL as a
string, and the values are a sequence of ``(name, value)`` tuples with the
form data.
R�N( R�thasattrR�R�RBtopen_http_urllibR�R9R�(R�textra_valuest open_httptvaluesR�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR`s cCs�|std��nyddlm}m}Wn1tk
rbddlm}ddlm}nX|dkr�d|kr�|d7}n
|d7}|||�7}d}n||�}|||�S( Nscannot submit, no URL providedi����(t urlencodeturlopen(R(RR�t?t&(t
ValueErrorturllibRRtImportErrorturllib.requestturllib.parseRB(R�R�RRRRu((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s
R�cBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z
RS( cCs
||_dS(N(R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��scCs|j|jS(N(R�Rz(R8titem((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__getitem__�scCs||j|_dS(N(R�Rz(R8RRz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__setitem__�scCstd��dS(Ns'You cannot remove keys from ElementDict(Ra(R8R((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__delitem__�scCs
|jj�S(N(R�R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��scCs
||jkS(N(R�(R8R((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__contains__�scCst|jj��S(N(R}R�R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__iter__�scCs
t|j�S(N(R/R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__len__�scCs d|jj|jjj�fS(Ns<%s for form %s>(t __class__R�R�R�R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt__repr__�s (R�R�R�RRRR�RRRR(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��s R�cBsbeZdZejd�Zejd�Zd�Zd�Zd�Z d�Z
d�Zd�ZRS( s
An accessor that represents all the input fields in a form.
You can get fields by name from this, with
``form.inputs['field_name']``. If there are a set of checkboxes
with the same name, they are returned as a list (a `CheckboxGroup`
which also allows value setting). Radio inputs are handled
similarly.
You can also iterate over this to get all input elements. This
won't return the same thing as if you get all the names, as
checkboxes and radio elements are returned individually.
sk.//*[@name = $name and (local-name(.) = 'select' or local-name(.) = 'input' or local-name(.) = 'textarea')]sT.//*[local-name() = 'select' or local-name() = 'input' or local-name() = 'textarea']cCs
||_dS(N(R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��scCsd|jj|jj�fS(Ns<%s for form %s>(RR�R�R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s cCs�|j|jd|�}|r�|djd�}|dkrht|�dkrht|�}||_|S|dkr�t|�dkr�t|�}||_|S|dSntd|��dS(NR�iR�tradioitcheckboxs!No input element with the name %r(t_name_xpathR�RAR/t
RadioGroupR�t
CheckboxGroupRa(R8R�R�R�R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s cCs"|j|jd|�}t|�S(NR�(RR�R�(R8R�R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�scCsPt�}x|D]}|j|j�qWd|krF|jd�nt|�S(N(RHtaddR�RBRRR�(R8tnamesR\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��s
cCst|j|j��S(N(R}t
_all_xpathR�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s(
R�R�R�RtXPathRRR�RRRR�R(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��s t
InputMixincBsMeZdZd�Zd�Zd�Zeeeedej�Zd�ZRS(sE
Mix-in for all input elements (input, select, and textarea)
cCs
|jd�S(s1
Get/set the name of the element
R�(RA(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_name__get�scCs|jd|�dS(NR�(RH(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_name__setscCs d|jkr|jd=ndS(NR�(RJ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_name__delsR:cCsNt|dd�}|r%d|}nd}d|jjt|�|j|fS(NR�s type=%rRLs<%s %x name=%r%s>(R�RBRR�R@R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRs
( R�R�R�R"R#R$R�R�R(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR!�s tTextareaElementcBsDeZdZd�Zd�Zd�Zeeeedej�ZRS(sp
``<textarea>`` element. You can get the name with ``.name`` and
get/set the value with ``.value``
c Csh|jpd}|jjdt�r.d}nd}x-|D]%}|tj|d|dt�7}q;W|S(sK
Get/set the value (which is the contents of this element)
RLs{%s}txmlRfR�R$(RQR2t
startswithR0RRR'(R8tcontenttserialisation_methodR\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_value__gets
#cCs|2||_dS(N(RQ(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_value__set#scCsd|_|2dS(NRL(RQ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_value__del&s R:(R�R�R�R*R+R,R�Rz(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR%s
R�t
SelectElementcBs�eZdZd�Zd�Zd�Zeeeedej�Zd�Zeedej�Zd�Z d�Z
ee e
de j�ZRS(s�
``<select>`` element. You can get the name with ``.name``.
``.value`` will be the value of the selected option, unless this
is a multi-select element (``<select multiple>``), in which case
it will be a set-like object. In either case ``.value_options``
gives the possible values.
The boolean attribute ``.multiple`` shows if this is a
multi-select.
cCs�|jrt|�Sxot|�D]a}|jd�dk r |jd�}|dkrh|jpbd}n|r}|j�}n|Sq WdS(s�
Get/set the value of this select (the selected option).
If this is a multi-select, this is a set-like object that
represents all the selected options.
tselectedRzRLN(R�tMultipleSelectOptionst_options_xpathRARBRQR�(R8R\Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR*:s
cCs8|jrHt|t�r'td��n|jj�|jj|�dS|dk r�|j�}xt |�D]^}|j
d�}|dkr�|jp�d}n|r�|j�}n||krm|}PqmqmWtd|��nx0t |�D]"}d|j
kr�|j
d=q�q�W|dk r4|jdd�ndS(NsYou must pass in a sequenceRzRLs'There is no option with the value of %rR.(R�R-R.RGRztcleartupdateRBR�R0RARQR
RJRH(R8RzR\t opt_valuetchecked_option((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR+Ms2
cCs&|jr|jj�n d|_dS(N(R�RzR1RB(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR,is R:cCspg}xct|�D]U}|jd�}|dkrF|jp@d}n|r[|j�}n|j|�qW|S(s�
All the possible values this select can have (the ``value``
attribute of all the ``<option>`` elements.
RzRLN(R0RARBRQR�R�(R8toptionsR\Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
value_optionsrscCs
d|jkS(sW
Boolean attribute: is there a ``multiple`` attribute on this element.
R�(RJ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_multiple__get�scCs9|r|jdd�nd|jkr5|jd=ndS(NR�RL(RHRJ(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_multiple__set�s(R�R�R�R*R+R,R�RzR6R7R8R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR--s R�R/cBsPeZdZd�Zd�Zee�Zd�Zd�Zd�Zd�Z RS(s�
Represents all the selected options in a ``<select multiple>`` element.
You can add to this set-like option to select an option, or remove
to unselect the option.
cCs
||_dS(N(R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��scCstt|j��S(s<
Iterator of all the ``<option>`` elements.
(R}R0R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR5�sccsqxj|jD]_}d|jkr
|jd�}|dkrL|jpFd}n|ra|j�}n|Vq
q
WdS(NR.RzRL(R5RJRARBRQR�(R8toptionR3((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�scCs�x�|jD]h}|jd�}|dkr=|jp7d}n|rR|j�}n||kr
|jdd�Pq
q
Wtd|��dS(NRzRLR.s$There is no option with the value %r(R5RARBRQR�RHR
(R8RR9R3((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�scCs�x�|jD]�}|jd�}|dkr=|jp7d}n|rR|j�}n||kr
d|jkrz|jd=ntd|��Pq
q
Wtd|��dS(NRzRLR.s'The option %r is not currently selecteds%There is not option with the value %r(R5RARBRQR�RJR
(R8RR9R3((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRR�s
cCs?d|jjdjg|D]}t|�^q�|jjfS(Ns<%s {%s} for select name=%r>s, (RR�R�treprR�R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s %(
R�R�R�R�R5R�RRRRR(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR/�s
RcBskeZdZd�Zd�Zd�Zeeeedej�Zd�Zeedej�Zd�Z RS(s
This object represents several ``<input type=radio>`` elements
that have the same name.
You can use this like a list, but also use the property
``.value`` to check/uncheck inputs. Also you can use
``.value_options`` to get the possible values.
cCs1x*|D]"}d|jkr|jd�SqWdS(ss
Get/set the value, which checks the radio with that value (and
unchecks any other value).
R�RzN(RJRARB(R8R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR*�s
cCs�|dk rOx@|D]%}|jd�|kr|}PqqWtd|��nx*|D]"}d|jkrV|jd=qVqVW|dk r�|jdd�ndS(NRzs)There is no radio input with the value %rR�RL(RBRAR
RJRH(R8RzR\R4((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR+�s
cCs
d|_dS(N(RBRz(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR,�sR:cCs g|D]}|jd�^qS(s<
Returns a list of all the possible values.
Rz(RA(R8R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR6�scCsd|jjtj|�fS(Ns%s(%s)(RR�R�R(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRs (
R�R�R�R*R+R,R�RzR6R(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s
RcBskeZdZd�Zd�Zd�Zeeeedej�Zd�Zeedej�Zd�Z RS(sS
Represents a group of checkboxes (``<input type=checkbox>``) that
have the same name.
In addition to using this like a list, the ``.value`` attribute
returns a set-like object that you can add to or remove from to
check and uncheck checkboxes. You can also use ``.value_options``
to get the possible values.
cCs
t|�S(s�
Return a set-like object that can be modified to check or
uncheck individual checkboxes according to their value.
(tCheckboxValues(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR*scCsP|jj�t|d�s<td|dj|f��n|jj|�dS(NRs<A CheckboxGroup (name=%r) must be set to a sequence (not %r)i(RzR1RR
R�R2(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR+s
cCs|jj�dS(N(RzR1(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR,sR:cCs g|D]}|jd�^qS(s<
Returns a list of all the possible values.
Rz(RA(R8R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR6"scCsd|jjtj|�fS(Ns%s(%s)(RR�R�R(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR)s(
R�R�R�R*R+R,R�RzR6R(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRs R;cBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(sj
Represents the values of the checked checkboxes in a group of
checkboxes with the same name.
cCs
||_dS(N(R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�4scCs8tg|jD]$}d|jkr
|jd�^q
�S(NR�Rz(R}R�RJRA(R8R\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR7s
cCsQxJ|jD]/}|jd�|kr
|jdd�Pq
q
Wtd|��dS(NRzR�RLsNo checkbox with value %r(R�RARHRa(R8RzR\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR=s
cCsmxf|jD]K}|jd�|kr
d|jkrA|jd=ntd|��Pq
q
Wtd|��dS(NRzR�s0The checkbox with value %r was already uncheckedsNo checkbox with value %r(R�RARJRa(R8RzR\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRREs
cCs?d|jjdjg|D]}t|�^q�|jjfS(Ns <%s {%s} for checkboxes name=%r>s, (RR�R�R:R�R�(R8R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRRs %(R�R�R�R�RRRRR(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR;-s
tInputElementcBs�eZdZd�Zd�Zd�Zeeeedej�Zd�Zd�Z eee dej�Z
d�Zeedej�Zd�Zd �Z
eee
dej�ZRS(
sZ
Represents an ``<input>`` element.
You can get the type with ``.type`` (which is lower-cased and
defaults to ``'text'``).
Also you can get and set the value with ``.value``
Checkboxes and radios have the attribute ``input.checkable ==
True`` (for all others it is false) and a boolean attribute
``.checked``.
cCs9|jr,|jr%|jd�p$dSdSn|jd�S(s�
Get/set the value of this element, using the ``value`` attribute.
Also, if this is a checkbox and it has no value, this defaults
to ``'on'``. If it is a checkbox or radio that is not
checked, this returns None.
RztonN(R�R�RARB(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR*hs
cCs]|jrI|st|_qYt|_t|t�rY|jd|�qYn|jd|�dS(NRz(R�RnR�R�R-R.RH(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR+vs cCs5|jrt|_nd|jkr1|jd=ndS(NRz(R�RnR�RJ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR,�s R:cCs|jdd�j�S(sM
Return the type of this element (using the type attribute).
R�RQ(RARZ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_type__get�scCs|jd|�dS(NR�(RH(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_type__set�scCs
|jdkS(s7
Boolean: can this element be checked?
RR(scheckboxsradio(R�(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR��scCs%|jstd��nd|jkS(s�
Boolean attribute to get/set the presence of the ``checked``
attribute.
You can only use this on checkable input types.
sNot a checkable input typeR�(R�tAttributeErrorRJ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_checked__get�s cCsQ|jstd��n|r1|jdd�nd|jkrM|jd=ndS(NsNot a checkable input typeR�RL(R�R@RHRJ(R8Rz((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
_checked__set�s (R�R�R�R*R+R,R�RzR>R?R�R�RARBR�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR<Xs
R�tLabelElementcBsDeZdZd�Zd�Zd�Zeeeedej�ZRS(s�
Represents a ``<label>`` element.
Label elements are linked to other elements with their ``for``
attribute. You can access this element with ``label.for_element``.
cCs)|jd�}|sdS|jj|�S(sf
Get/set the element this label points to. Return None if it
can't be found.
RFN(RARBR>Rc(R8R@((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_for_element__get�scCs<|jd�}|s(td|��n|jd|�dS(NR@sElement %r has no id attributeRF(RARGRH(R8totherR@((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_for_element__set�s
cCs d|jkr|jd=ndS(NR@(RJ(R8((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt_for_element__del�sR:(R�R�R�RDRFRGR�tfor_element(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRC�s REcCs�y|j�}Wntk
r#nXdt}xO|j�D]A}|j}t|t�r;|ddkr||||_q|q;q;WdS(sYConvert all tags in an HTML tree to XHTML by moving them to the
XHTML namespace.
s{%s}iR+N(tgetrootR@R0R}R2R-R.(RftprefixR\R2((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
html_to_xhtml�s
cCsly|j�}Wntk
r#nXdt}t|�}x+|j|d�D]}|j||_qNWdS(sUConvert all tags in an XHTML tree to HTML by removing their
XHTML namespace.
s{%s}R�N(RIR@R0R/R}R2(txhtmlRJt
prefix_lenR\((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt
xhtml_to_html�s
s%<meta http-equiv="Content-Type"[^>]*>tASCIIRfcCsztj|d|d|d|d|d|�}|dkrv|rvt|t�ratd|�}qvtt�|�}n|S(s
Return an HTML string representation of the document.
Note: if include_meta_content_type is true this will create a
``<meta http-equiv="Content-Type" ...>`` tag in the head;
regardless of the value of include_meta_content_type any existing
``<meta http-equiv="Content-Type" ...>`` tag will be removed
The ``encoding`` argument controls the output encoding (defauts to
ASCII, with &#...; character references for any characters outside
of ASCII). Note that you can pass the name ``'unicode'`` as
``encoding`` argument to serialise to a unicode string.
The ``method`` argument defines the output method. It defaults to
'html', but can also be 'xml' for xhtml output, or 'text' to
serialise to plain text without markup.
To leave out the tail text of the top-level element that is being
serialised, pass ``with_tail=False``.
The ``doctype`` option allows passing in a plain string that will
be serialised before the XML tree. Note that passing in non
well-formed content here will make the XML output non well-formed.
Also, an existing doctype in the document tree will not be removed
when serialising an ElementTree instance.
Example::
>>> from lxml import html
>>> root = html.fragment_fromstring('<p>Hello<br>world!</p>')
>>> html.tostring(root)
b'<p>Hello<br>world!</p>'
>>> html.tostring(root, method='html')
b'<p>Hello<br>world!</p>'
>>> html.tostring(root, method='xml')
b'<p>Hello<br/>world!</p>'
>>> html.tostring(root, method='text')
b'Helloworld!'
>>> html.tostring(root, method='text', encoding=unicode)
u'Helloworld!'
>>> root = html.fragment_fromstring('<div><p>Hello<br>world!</p>TAIL</div>')
>>> html.tostring(root[0], method='text', encoding=unicode)
u'Helloworld!TAIL'
>>> html.tostring(root[0], method='text', encoding=unicode, with_tail=False)
u'Helloworld!'
>>> doc = html.document_fromstring('<p>Hello<br>world!</p>')
>>> html.tostring(doc, method='html', encoding=unicode)
u'<html><body><p>Hello<br>world!</p></body></html>'
>>> print(html.tostring(doc, method='html', encoding=unicode,
... doctype='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'
... ' "http://www.w3.org/TR/html4/strict.dtd">'))
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><body><p>Hello<br>world!</p></body></html>
R�tpretty_printR$t with_tailtdoctypeRfRL(RRR-R�t__str_replace_meta_content_typet!__bytes_replace_meta_content_typeR&(R:RPtinclude_meta_content_typeR$R�RQRRRf((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�s? c Cs�ddl}ddl}ddl}t|tj�sHtj|�}n|jdd�\}}|j|d�}z/|j |ddd|p�|j
jp�d �Wd|j�Xd
|j
|jjd�}|GH|j|�dS(s�
Open the HTML document in a web browser, saving it to a temporary
file to open it. Note that this does not delete the file after
use. This is mainly meant for debugging.
i����Ntsuffixs.htmltwbR�RfR$sUTF-8sfile://t/(tost
webbrowserttempfileR-Rt_ElementTreetElementTreetmkstemptfdopentwriteR6R$tclosetreplacetpathtseptopen( R:R$RYRZR[thandletfntfR�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR?s/t
HTMLParsercBseZdZd�ZRS(sOAn HTML parser that is configured to return lxml.html Element
objects.
cKs*tt|�j|�|jt��dS(N(tsuperRiR�tset_element_class_lookupR�(R8tkwargs((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�]s(R�R�R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRiYstXHTMLParsercBseZdZd�ZRS(s(An XML parser that is configured to return lxml.html Element
objects.
Note that this parser is not really XHTML aware unless you let it
load a DTD that declares the HTML entities. To do this, make sure
you have the XHTML DTDs installed in your catalogs, and create the
parser like this::
>>> parser = XHTMLParser(load_dtd=True)
If you additionally want to validate the document, use this::
>>> parser = XHTMLParser(dtd_validation=True)
For catalog support, see http://www.xmlsoft.org/catalog.html.
cKs*tt|�j|�|jt��dS(N(RjRmR�RkR�(R8Rl((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyR�rs(R�R�R�R�(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRmascOstj||�}|S(sOCreate a new HTML Element.
This can also be used for XHTML documents.
(R�tmakeelement(R�R�R�((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyRvs(kR�RR turlparseRRRR�tlxmlRt lxml.htmlRtlxml.html._setmixinRtcollectionsRRtUserDictRHt NameErrortsetsRR&R�R'R.Rt__all__R0R R[R0R;R^R_RdR
tIR�R�RCR~R#R*R3RrR4R�RnRRR�RRRRR�R�tElementBaseR�tPIBaseR�t
EntityBaseR�R�R�R�R�R�R�RBRRRRRR�R�R�R�RRR�R�R!R%R-R/R�RRR;R<RCRKRNRRSRTRRRit XMLParserRmRR�txhtml_parser(((s8/usr/lib64/python2.7/site-packages/lxml/html/__init__.pyt<module> s�
!
�N#- $-C
i
% B
a
B4'+T
H