Files
cms-website/.deps_siteforge_v812/soupsieve/__pycache__/pretty.cpython-312.pyc
T

113 lines
5.4 KiB
Plaintext
Raw Normal View History

Ë
çÅÙj
ãóÔ—dZddlmZddlZddlmZej d«Zej d«Zej d«Z ej d«Z
ej d «Z ej d
«Z ej d «Z
ej d «Zej d
«Zej d«Zej d«Zej d«Zej d«Zej d«Zej d«Zej d«Zide“de“de “de
“de “de “de
“de“de“de“de“d e“d!e“d"e“d#e“d$e“Zd&d%„Zy)'aç
Format a pretty string of a `SoupSieve` object for easy debugging.
This won't necessarily support all types and such, and definitely
not support custom outputs.
It is mainly geared towards our types as the `SelectorList`
object is a beast to look at without some indentation and newlines.
The format and various output types is fairly known (though it
hasn't been tested extensively to make sure we aren't missing corners).
Example:
-------
```
>>> import soupsieve as sv
>>> sv.compile('this > that.class[name=value]').selectors.pretty()
SelectorList(
selectors=(
Selector(
tag=SelectorTag(
name='that',
prefix=None),
ids=(),
classes=(
'class',
),
attributes=(
SelectorAttribute(
attribute='name',
prefix='',
pattern=re.compile(
'^value$'),
xml_type_pattern=None),
),
nth=(),
selectors=(),
relation=SelectorList(
selectors=(
Selector(
tag=SelectorTag(
name='this',
prefix=None),
ids=(),
classes=(),
attributes=(),
nth=(),
selectors=(),
relation=SelectorList(
selectors=(),
is_not=False,
is_html=False),
rel_type='>',
contains=(),
lang=(),
flags=0),
),
is_not=False,
is_html=False),
rel_type=None,
contains=(),
lang=(),
flags=0),
),
is_not=False,
is_html=False)
```
é)Ú annotationsN)ÚAnyz(?i)[a-z_][_a-z\d.]+\(z(?i)[_a-z][_a-z\d]+=z\(\)|\[\]|\{\}z\[z\{z\(z\]z\}z\)z\d+z(?i)[_a-z][_a-z\d.]+z"(?:\\.|[^"\\])*"z'(?:\\.|[^'\\])*'z \s*(,)\s*z \s*(:)\s*z
\s*(\|)\s*ÚclassÚparamÚemptyÚlstrtÚdstrtÚtstrtÚlendÚdendÚtendÚsqstrÚsepÚdsepÚpsepÚintÚkwordÚdqstrcó>—t|«}d}t|«dz
}d}g}||k�rhd}tj«D�],\}}|j ||«}|sŒ|} |j d«}| dvr.|dz
}|j
|jd«›dd|z›�«nÌ| dvr!|j
|jd««n§| d vr&|dz}|j
|jd««n}| d
vr)|j
|jd«›dd|z›�«nP| d vr$|j
|jd«›d�«n(| d vr$|j
d|jd«›d�«n|€|j
||«|dz
}||kr�Œhd
j|«S)z%Make the object output string pretty.réN)rrr r
éÚ
Ú )rrrrrr)r r r
)r)rrÚ) ÚstrÚlenÚTOKENSÚitemsÚmatchÚendÚappendÚgroupÚjoin)
ÚobjÚselÚindexr ÚindentÚoutputÚmÚkÚvÚnames
úTC:\Users\30997\AppData\Local\Temp\pip-target-6g32zz5s\lib\python\soupsieve/pretty.pyÚprettyr.ns•€ô ˆc‹(€CØ
€EÜ
ˆc‹(�Q‰,€CØ
€FØ
€Fà
�3‹,Ø ˆÜ—L‘L—N‰DˆAˆqØ—‘˜˜UÓ#ˆAâØ�ØŸ™˜a›�ØÐ?Ñ?ؘa‘K�FØ—M‘M Q§W¡W¨Q£Z L°°3¸±<°.Ð"AÕBØÐQÑQØ—M‘M !§'¡'¨!£*Õ-ØÐ5Ñ5ؘa‘K�FØ—M‘M !§'¡'¨!£*Õ-ؘXÑ%Ø—M‘M Q§W¡W¨Q£Z L°°3¸±<°.Ð"AÕBؘYÑ&Ø—M‘M Q§W¡W¨Q£Z L°Ð"2Õ3ؘfÑ%Ø—M‘M A a§g¡g¨a£j \°Ð"3Ô4Ùð)#ð.
ˆ9Ø �M‰M˜#˜e™*Ô %Ø �Q‰JˆEð7 �3Œ,ð: �7‰7�6‹?Ðó)r$rÚreturnr)Ú__doc__Ú
__future__rÚreÚtypingrÚcompileÚRE_CLASSÚRE_PARAMÚRE_EMPTYÚRE_LSTRTÚRE_DSTRTÚRE_TSTRTÚRE_LENDÚRE_DENDÚRE_TENDÚRE_INTÚRE_KWORDÚRE_DQSTRÚRE_SQSTRÚRE_SEPÚRE_DSEPÚRE_PSEPrr.©r/r-Ú<module>rGsåðñCõH#Û Ýà ˆ2�:‰:Ð/Ó 0€Ø ˆ2�:‰:Ð-Ó .€Ø ˆ2�:‰:Ð'Ó (€Ø ˆ2�:‰:�eÓ €Ø ˆ2�:‰:�eÓ €Ø ˆ2�:‰:�eÓ €Ø
ˆ"�*‰*�UÓ
ۯ
ˆ"�*‰*�UÓ
ۯ
ˆ"�*‰*�UÓ
€Ø ˆ�‰�FÓ €Ø ˆ2�:‰:Ð-Ó .€Ø ˆ2�:‰:Ð*Ó +€Ø ˆ2�:‰:Ð*Ó +€Ø ˆ�‰�LÓ !€Ø
ˆ"�*‰*�\Ó
"ۯ
ˆ"�*‰*�]Ó
#€ð
Ø ˆXð