/opt/alt/python27/lib64/python2.7/site-packages/lxml
NameSizeModeActions
html/-0755rm
includes/-0755rm
isoschematron/-0755rm
builder.py78790644editdlrm
builder.pyc68880644editdlrm
builder.pyo68420644editdlrm
cssselect.py34710644editdlrm
cssselect.pyc42470644editdlrm
cssselect.pyo42470644editdlrm
doctestcompare.py182870644editdlrm
doctestcompare.pyc178030644editdlrm
doctestcompare.pyo178030644editdlrm
ElementInclude.py76410644editdlrm
ElementInclude.pyc45970644editdlrm
ElementInclude.pyo45970644editdlrm
etree.so14629040755editdlrm
lxml.etree.h93740644editdlrm
lxml.etree_api.h165340644editdlrm
objectify.so2954800755editdlrm
pyclasslookup.py870644editdlrm
pyclasslookup.pyc2260644editdlrm
pyclasslookup.pyo2260644editdlrm
sax.py84930644editdlrm
sax.pyc92760644editdlrm
sax.pyo92760644editdlrm
usedoctest.py2300644editdlrm
usedoctest.pyc4400644editdlrm
usedoctest.pyo4400644editdlrm
_elementpath.py93110644editdlrm
_elementpath.pyc79470644editdlrm
_elementpath.pyo80620644editdlrm
__init__.py5510644editdlrm
__init__.pyc8020644editdlrm
__init__.pyo8060644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/lxml/cssselect.pyo (4247B)
Ñò ÄqPc @sþdZddkZddklZyedƒZWnej oedƒ‚nXeiZeiZei Z dddd gZ d ei fd „ƒYZ d e ei fd „ƒYZd„ZeidƒZde_eed>> from lxml import etree, cssselect >>> select = cssselect.CSSSelector("a tag > child") >>> root = etree.XML("TEXT") >>> [ el.tag for el in select(root) ] ['child'] To use CSS namespaces, you need to pass a prefix-to-namespace mapping as ``namespaces`` keyword argument:: >>> rdfns = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >>> select_ns = cssselect.CSSSelector('root > rdf|Description', ... namespaces={'rdf': rdfns}) >>> rdf = etree.XML(( ... '' ... 'blah' ... '') % rdfns) >>> [(el.tag, el.text) for el in select_ns(rdf)] [('{http://www.w3.org/1999/02/22-rdf-syntax-ns#}Description', 'blah')] txmlcCs‰|djo tƒ}n;|djo tƒ}n!|djotdtƒ}n|i|ƒ}tii||d|ƒ||_dS(NRthtmltxhtmlt namespaces(RRtTruet css_to_xpathRtXPatht__init__tcss(RR#Rt translatortpath((sA/opt/alt/python27/lib64/python2.7/site-packages/lxml/cssselect.pyR"Xs     cCs0d|iittt|ƒƒƒd|ifS(Ns<%s %s for %r>i(t __class__RthextabstidR#(R((sA/opt/alt/python27/lib64/python2.7/site-packages/lxml/cssselect.pyt__repr__cs N(RRRtNoneR"R*(((sA/opt/alt/python27/lib64/python2.7/site-packages/lxml/cssselect.pyR=s (RtsystlxmlRt __import__texternal_cssselectt ImportErrorRRRt__all__tGenericTranslatorRtHTMLTranslatorRRtFunctionNamespacetnstprefixR!R(((sA/opt/alt/python27/lib64/python2.7/site-packages/lxml/cssselect.pyts$