Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
ǁaWa @ s d Z ddlZddlZddlmZmZmZ ejd dk r@eZ e
ZneZ eZdddZ
G dd deeZG d d
d
eZejdjZejdjZejd
jZG dd deZG dd deZdS )a
cssselect.xpath
===============
Translation of parsed CSS selectors to XPath expressions.
:copyright: (c) 2007-2012 Ian Bicking and contributors.
See AUTHORS for more details.
:license: BSD, see LICENSE for more details.
N)parseparse_series
SelectorError c C s |j ddjd}t| ||S )Nasciireplace)encodedecodegetattr)objnamedefault r /usr/lib/python3.6/xpath.py_unicode_safe_getattr s r c @ s e Zd ZdZdS )ExpressionErrorz3Unknown or unsupported selector (eg. pseudo-class).N)__name__
__module____qualname____doc__r r r r r # s r c @ sF e Zd ZdddZdd Zdd Zd
d Zdd
Zdd Zdd Z dS ) XPathExpr *Fc C s || _ || _|| _d S )N)pathelement condition)selfr r r Zstar_prefixr r r __init__+ s zXPathExpr.__init__c C s, t | jt | j }| jr(|d| j 7 }|S )Nz[%s])_unicoder r r )r r r r r __str__0 s zXPathExpr.__str__c C s d| j j| f S )Nz%s[%s]) __class__r )r r r r __repr__6 s zXPathExpr.__repr__c C s" | j rd| j |f | _ n|| _ | S )Nz%s and (%s))r )r r r r r
add_condition9 s zXPathExpr.add_conditionc C s. | j dkrd S | jdtj| j d| _ d S )Nr zname() = %s)r r" GenericTranslator
xpath_literal)r r r r
add_name_test@ s
zXPathExpr.add_name_testc C s | j d7 _ dS )ze
Append '*/' to the path to keep the context constrained
to a single parent.
z*/N)r )r r r r add_star_prefixH s zXPathExpr.add_star_prefixc C s: t | | }|jdkr ||j7 }|| _|j| _|j| _| S )Nz*/)r r r r )r Zcombinerotherr r r r joinO s
zXPathExpr.joinN)r r r F)
r r r r r r! r" r% r&