o
    ¶2úhK  ã                   @   sZ   d Z ddlmZ ddlmZ ddlmZ dZddd„Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dS )zCOperations for storing and retrieving formatting info on ast nodes.é    )Úabsolute_import)Údivision)Úprint_functionÚ	__pasta__Nc                 C   s*   z	t | ƒ ||¡W S  ty   | Y S w ©N)Ú_formatting_dictÚgetÚAttributeError)ÚnodeÚnameÚdefault© r   úP/var/www/html/chatgem/venv/lib/python3.10/site-packages/pasta/base/formatting.pyr      s
   ÿr   c                 C   s>   t | tƒszt| ti ƒ W n	 ty   Y nw |t| ƒ|< d S r   )ÚhasattrÚ
PASTA_DICTÚsetattrr	   r   ©r
   r   Úvaluer   r   r   Úset   s   
ÿr   c                 C   s   t | |t| |dƒ| ƒ d S ©NÚ ©r   r   r   r   r   r   Úappend(   ó   r   c                 C   s   t | ||t| |dƒ ƒ d S r   r   r   r   r   r   Úprepend,   r   r   c                 C   s
   t | tƒS r   )Úgetattrr   )r
   r   r   r   r   0   s   
r   r   )Ú__doc__Ú
__future__r   r   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   
	