ok
Direktori : /proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/lxml/ |
Current File : //proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/lxml/cssselect.pyo |
� �qPc @ s� d Z d d l Z d d l m Z y e d � Z Wn e k rQ e d � � n Xe j Z e j Z e j Z d d d d g Z d e j f d � � YZ d e e j f d � � YZ d � Z e j d � Z d e _ e e d <d e j f d � � YZ d S( s� CSS Selectors based on XPath. This module supports selecting XML/HTML tags based on CSS selectors. See the `CSSSelector` class for details. This is a thin wrapper around cssselect 0.7 or later. i����N( t etreet cssselectsN cssselect seems not to be installed. See http://packages.python.org/cssselect/t SelectorSyntaxErrort ExpressionErrort SelectorErrort CSSSelectort LxmlTranslatorc B s e Z d Z d � Z RS( sR A custom CSS selector to XPath translator with lxml-specific extensions. c C sd | j � d g d g f k r4 t d | j � � n | j d j } | j d | j | j � � � S( Nt STRINGt IDENTs9 Expected a single string or ident for :contains(), got %ri s7 contains(__lxml_internal_css:lower-case(string(.)), %s)( t argument_typesR t argumentst valuet add_conditiont xpath_literalt lower( t selft xpatht functionR ( ( s4 /usr/lib64/python2.7/site-packages/lxml/cssselect.pyt xpath_contains_function"