§
    ÷yIfo  ã                  ó¬   — d dl mZ d dlZd dlZd dlZd dlZd dlmZmZ d dl	m	Z	 d dl
mZ d dlmZmZ dd„Zdd„Zdd„Zej        dd„¦   «         Zdd„ZdS ) é    )ÚannotationsN)ÚIteratorÚSequence)Údatetime)ÚPath)ÚPYLINT_HOMEÚfull_versionÚexÚ	ExceptionÚfilepathÚstrÚcrash_file_pathÚreturnr   c           
     ó  — t          t          ¦  «        t          j        ¦   «                              t          |¦  «        ¦  «        z                       ¦   «         }t          |d¬¦  «        5 }|                     ¦   «         }d d d ¦  «         n# 1 swxY w Y   d}| 	                    ¦   «         sd}|d| › d|› d| j
        j        › d�z  }|t          j        ¦   «         z  }|d	t          › d
t          j        › dt!          j        ¦   «         › d�z  }	 t          |dd¬¦  «        5 }|                     |¦  «         d d d ¦  «         n# 1 swxY w Y   n<# t&          $ r/}t)          d|› d|› d|› d�t          j        ¬¦  «         Y d }~nd }~ww xY w|S )NÚutf8)ÚencodingÚ uØ   First, please verify that the bug is not already filled:
https://github.com/pylint-dev/pylint/issues/

Then create a new issue:
https://github.com/pylint-dev/pylint/issues/new?labels=Crash ðŸ’¥%2CNeeds triage ðŸ“¥


z
Issue title:
Crash ``a  `` (if possible, be more specific about what made pylint crash)

### Bug description

When parsing the following ``a.py``:

<!--
 If sharing the code is not an option, please state so,
 but providing only the stacktrace would still be helpful.
 -->

```python
z‚
```

### Command used

```shell
pylint a.py
```

### Pylint output

<details open>
    <summary>
        pylint crashed with a ``z@`` and with the following stacktrace:
    </summary>

```python
zR
```


</details>

### Expected behavior

No crash.

### Pylint version

```shell
z
```

### OS / Environment

z (z)

### Additional dependencies

<!--
Please remove this part if you're not using any of
your dependencies in the example.
 -->
Úaz0Can't write the issue template for the crash in z because of: 'z'
Here's the content anyway:
ú.)Úfile)r   r   r   ÚnowÚstrftimer   ÚresolveÚopenÚreadÚexistsÚ	__class__Ú__name__Ú	tracebackÚ
format_excr	   ÚsysÚplatformÚsystemÚwriter   ÚprintÚstderr)r
   r   r   Úissue_template_pathÚfÚfile_contentÚtemplateÚexcs           úE/var/www/piapp/venv/lib/python3.11/site-packages/pylint/lint/utils.pyÚprepare_crash_reportr-      sŒ  € å�[ÑÔ�HœL™NœN×3Ò3µC¸Ñ4HÔ4HÑIÔIÑIß‚g�i„ið õ 
ˆh Ð	(Ñ	(Ô	(ð  ¨AØ—v’v‘x”xˆð ð  ð  ñ  ô  ð  ð  ð  ð  ð  ð  øøøð  ð  ð  ð  à€HØ×%Ò%Ñ'Ô'ð 	ðˆð ð à	ðð ð ðð ð6 "$¤Ô!6ð7ð ð ñ €Hð@ •	Ô$Ñ&Ô&Ñ&€HØð õ ðð õ$ „ð%ð õ$ ”Ñ"Ô"ð%ð ð ñ €Hð6
ÝÐ% s°VÐ<Ñ<Ô<ð 	ÀØ�GŠG�HÑÔÐð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	øøåð 
ð 
ð 
ÝðLÐ?Rð Lð LØðLð LØ@HðLð Lð Lå”ð	
ñ 	
ô 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
øøøøð
øøøð ÐsN   Á,BÂBÂBÄE Ä!EÄ7E ÅEÅE Å
EÅE Å
FÅ%FÆFr'   c                ó   — d| › d|› d�S )NzFatal error while checking 'zs'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in 'z'.© )r   r'   s     r,   Úget_fatal_error_messager0   k   s0   € ð	W xð 	Wð 	Wà?Rð	Wð 	Wð 	Wðó    Úadditional_pathsúSequence[str]ú	list[str]c                óú   — t          t          j        ¦  «        }g }t          ¦   «         }| D ]0}||vr*|                     |¦  «         |                     |¦  «         Œ1|t          j        z   t          j        d d …<   |S )N)Úlistr!   ÚpathÚsetÚappendÚadd)r2   ÚoriginalÚchangesÚseenÚadditional_paths        r,   Ú_augment_sys_pathr?   s   sw   € Ý•C”H‰~Œ~€HØ€GÝ‰5Œ5€DØ+ð &ð &ˆØ $Ð&Ð&Ø�NŠN˜?Ñ+Ô+Ð+Ø�HŠH�_Ñ%Ô%Ð%øà�CœHÑ$…C„HˆQˆQˆQ�KØ€Or1   úIterator[None]c              #  ó€   K  — t          | ¦  «        }	 dV — |t          j        dd…<   dS # |t          j        dd…<   w xY w)zHAugment 'sys.path' by adding non-existent entries from additional_paths.N)r?   r!   r7   )r2   r;   s     r,   Úaugmented_sys_pathrB   €   sR   è è € õ !Ð!1Ñ2Ô2€HðØˆˆˆà�Œ���‰ˆˆø�h�Œ���‰ÐÐÐÐs   “* ª=ÚselfÚotherÚboolc                ó>   — 	  | j         |Ž  dS # t          $ r Y dS w xY w)z¤Checks if self is relative to other.

    Backport of pathlib.Path.is_relative_to for Python <3.9
    TODO: py39: Remove this backport and use stdlib function.
    TF)Úrelative_toÚ
ValueError)rC   rD   s     r,   Ú_is_relative_torI   Š   s>   € ðØˆÔ˜%Ð Ð ØˆtøÝð ð ð Øˆuˆuðøøøs   ‚
 Ž
›)r
   r   r   r   r   r   r   r   )r   r   r'   r   r   r   )r2   r3   r   r4   )r2   r3   r   r@   )rC   r   rD   r   r   rE   )Ú
__future__r   Ú
contextlibr"   r!   r   Úcollections.abcr   r   r   Úpathlibr   Úpylint.constantsr   r	   r-   r0   r?   ÚcontextmanagerrB   rI   r/   r1   r,   ú<module>rP      s  ðð
 #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ø €€€Ø 
€
€
€
Ø Ð Ð Ð Ø .Ð .Ð .Ð .Ð .Ð .Ð .Ð .Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð à 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6ðVð Vð Vð Vðrð ð ð ð
ð 
ð 
ð 
ð Ôðð ð ñ Ôðð
ð 
ð 
ð 
ð 
ð 
r1   