+
    WBiW                         ^ RI t ^ RIt^ RIHt ^ RIt^ RIt^ RIHt ^ RIHt R t	R t
R tRR R	 lltRR
 ltR tR t] P                   RR l4       tR# )    N)Path)Union)mockc                 N    \         P                  ! R RV 4      P                  4       # )z	[\s\r\n]+ )resubstrip)results   &9/usr/lib/python3.14/site-packages/mako/testing/helpers.pyflatten_resultr   
   s    66,V,2244    c                     \         P                  ! R \         P                  ! RRV 4      4       Uu. uF*  pVP                  4       R8w  g   K  VP                  4       NK,  	  up# u upi )\r?\nz +r    )r   splitr	   r
   r   xs   & r   result_linesr      sV     (BFF5#v$>??A779? 		?  s   A#A#c                     \         P                  ! R V 4       Uu. uF  qP                  4       R8w  g   K  VNK  	  up# u upi )r   r   )r   r   r
   r   s   & r   result_raw_linesr      s3    xx&1E1!WWY"_AA1EEEs   >>c                j    V ^8  d   QhR\         \        \        3,          R\        R\        R\        /# )   filespecmake_absolutecheck_existsreturn)r   r   strbool)formats   "r   __annotate__r!      s9     
 
D#I

 
 
	
r   c                     \        V 4      pV'       d   VP                  VR 7      pV'       d%   VP                  4       '       g   \        RV  24      hV# ))strictzNo file or directory at )r   resolveexistsFileNotFoundError)r   r   r   paths   &&& r   	make_pathr(      sE    
 >D||<|0T[[]]":8* EFFKr   c                     \         P                  ! 4       pV'       d   \         P                  ! \        4      pV;_uu_ 4        V P	                  4        R R R 4       R #   + '       g   i     R # ; i)N)
contextlibnullcontextsuppressr&   unlink)r'   
missing_okcms   && r   _unlink_pathr0   '   s>    				!B  !23	 
s   AA.	c                 p    \         P                  ! V 4      p\        VR R7       VP                  R R7       V# )T)r.   )exist_ok)pathlibr   r0   mkdir)pathspecr'   s   & r   replace_file_with_dirr6   1   s-    <<!D$'JJJKr   c                     \        V R 4      ;_uu_ 4       pVP                  R4       RRR4       V #   + '       g   i     T # ; i)wz*
i am an artificial template just for you
N)openwrite)r   fs   & r   file_with_template_coder<   8   s>    	h				
 
 O 
	 Os	   1A	c              #      "   \         P                   ! 4       V R ,          ,
          p\        P                  ! R4      ;_uu_ 4       pWP                   n        Rx  RRR4       R#   + '       g   i     R# ; i5i)i  zmako.codegen.timeN)timer   patchreturn_value)hoursrewoundcodegen_times   &  r   rewind_compile_timerD   B   sH     iikUU]+G	'	(	(L)0& 
)	(	(	(s   AA7A#
A7#A4	.	A7)TF)F)   )r*   r3   r   r   r>   typingr   unittestr   r   r   r   r(   r0   r6   r<   contextmanagerrD    r   r   <module>rJ      sX       	   5F
  r   