§
    ÷yIfî  ã                  óZ   — d dl mZ d dlZd dlZd dlmZmZ d dlmZ  G d„ de¦  «        Z	dS )é    )ÚannotationsN)ÚLintModuleTestÚMessageCounter)Ú
OutputLinec                  ób   — e Zd ZdZ G d„ dej        ¦  «        Z ej        de¦  «         dd„ZdS )ÚLintModuleOutputUpdatezXClass to be used if expected output files should be updated instead of
    checked.
    c                  ó   — e Zd ZdZdZdZdS )ú"LintModuleOutputUpdate.TestDialectzDialect used by the csv writer.ú:ú
N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	delimiterÚlineterminator© ó    úi/var/www/piapp/venv/lib/python3.11/site-packages/pylint/testutils/functional/lint_module_output_update.pyÚTestDialectr
      s   € € € € € Ø-Ð-àˆ	Øˆˆˆr   r   ÚtestÚ_r   Úexpected_outputúlist[OutputLine]Úactual_outputÚreturnÚNonec                óŒ  — |sIt           j                             | j        j        ¦  «        rt          j        | j        j        ¦  «         dS t          | j        j        dd¬¦  «        5 }t          j        |d¬¦  «        }|D ])}| 	                    | 
                    ¦   «         ¦  «         Œ*	 ddd¦  «         dS # 1 swxY w Y   dS )zDOverwrite or remove the expected output file based on actual output.NÚwzutf-8)Úencodingr   )Údialect)ÚosÚpathÚexistsÚ
_test_filer   ÚremoveÚopenÚcsvÚwriterÚwriterowÚto_csv)Úselfr   r   r   Úfr)   Úlines          r   Ú_check_output_textz)LintModuleOutputUpdate._check_output_text   s  € ð ð 	ÝŒw�~Š~˜dœoÔ=Ñ>Ô>ð ;Ý”	˜$œ/Ô9Ñ:Ô:Ð:ØˆFå�$”/Ô1°3ÀÐIÑIÔIð 	/ÈQÝ”Z ¨6Ð2Ñ2Ô2ˆFØ%ð /ð /�Ø—’ §¢¡¤Ñ.Ô.Ð.Ð.ð/ð	/ð 	/ð 	/ñ 	/ô 	/ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/ð 	/øøøð 	/ð 	/ð 	/ð 	/ð 	/ð 	/s   Á(AB9Â9B=Ã B=N)r   r   r   r   r   r   r   r   )	r   r   r   r   r(   Úexcelr   Úregister_dialectr/   r   r   r   r   r      su   € € € € € ðð ðð ð ð ð �c”iñ ô ð ð €CÔ˜ Ñ-Ô-Ð-ð/ð /ð /ð /ð /ð /r   r   )
Ú
__future__r   r(   r"   Ú!pylint.testutils.lint_module_testr   r   Úpylint.testutils.output_liner   r   r   r   r   ú<module>r5      s‰   ðð
 #Ð "Ð "Ð "Ð "Ð "à 
€
€
€
Ø 	€	€	€	à LÐ LÐ LÐ LÐ LÐ LÐ LÐ LØ 3Ð 3Ð 3Ð 3Ð 3Ð 3ð/ð /ð /ð /ð /˜^ñ /ô /ð /ð /ð /r   