/opt/cloudlinux/venv/lib/python3.11/site-packages/testfixtures/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/testfixtures/__pycache__/sybil.cpython-311.pyc (4349B)
§
KþÑ®Î=G@ã óâ — d dl Z d dlZd dlZd dlmZmZmZ d dlmZ ej dej
¦ « Z ej d¦ « Z ej d¦ « Z
G d„ de¦ « Z G d „ d
e¦ « ZdS )é N)ÚRegionÚExampleÚDocument)Údiffz^\.\.\s*topic::?\s*(.+)\bz(\n\Z|\n(?=\S))z\s+:class:\s*(read|write)-filec ó — e Zd Zd„ ZdS )Ú FileBlockc ó2 — |||c| _ | _ | _ d S ©N©ÚpathÚcontentÚaction)Úselfr r
r s úd/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/testfixtures/sybil.pyÚ__init__zFileBlock.__init__ s € Ø/3°W¸fÐ,ˆŒ �4”< ¤ ó N)Ú__name__Ú
__module__Ú__qualname__r © r r r r
s( € € € € € ðEð Eð Eð Eð Er r c ó6 — e Zd ZdZdefd„Zdefd„Zdefd„Z dS ) Ú
FileParsera9
A `Sybil
`__ parser that
parses certain ReST sections to read and write files in the
configured :class:`~testfixtures.TempDirectory`.
:param name: This is the name of the :class:`~testfixtures.TempDirectory` to use
in the Sybil test namespace.
Únamec ó — || _ d S r
)r )r r s r r zFileParser.__init__ s
€ ؈Œ ˆ ˆ r Údocumentc # ó¢ K — | t t ¦ « D �]*\ }}}| ¦ « }t |d ¦ « }|sŒ>d}|| ¦ « dk r|dz
}t j d ||d … ¦ « ¦ «
¦ « }|d dk r|dz
}t | d¦ « || d¦ « ¬¦ « }t | ¦ « | ¦ « || j ¦ « V — �Œ,d S )Né é z::ú
éÿÿÿÿr )Úfind_region_sourcesÚFILEBLOCK_STARTÚ
FILEBLOCK_ENDÚ
splitlinesÚCLASSÚmatchÚstripÚtextwrapÚdedentÚjoinÚlstripr Úgroupr ÚstartÚendÚevaluate) r r Ústart_matchÚ end_matchÚsourceÚlinesÚclass_ÚindexÚparseds r Ú__call__zFileParser.__call__ sX è è € Ø.6×.JÒ.JÝ�]ñ/
ô /
ð ñ Ñ*ˆK˜ Fð ×%Ò%Ñ'Ô'ˆEÝ—[’[ q¤Ñ*Ô*ˆFØð
ØØˆEØ�UŒ|×!Ò!Ñ#Ô# tÒ+Ð+ؘ‘
�Ý”_ T§Y¢Y¨u°U°V°V¬}Ñ%=Ô%=Ñ>Ô>×EÒEÑGÔGˆFØ�bŒz˜TÒ!Ð!ؘ$‘�åØ ×&Ò& qÑ)Ô)ØØ—|’| A‘”ðñ ô ˆFõ Ø×!Ò!Ñ#Ô#Ø—
’
‘”ØØ”
ñ ô ð
ð
ð
ñ
ð) ð r Úexamplec ó´ — |j }|j | j }|j dk r…| |j d¦ « t j d¦ « }||j k rAt |j |d|j |j fz d| |j ¦ « z ¦ « S |j dk r#|
|j |j d¦ « d S d S )NÚreadÚasciir zFile %r, line %i:zReading from "%s":Úwrite)r6 Ú namespacer r r: r ÚreplaceÚosÚlinesepr
r ÚlineÚ as_stringr<