AlkantarClanX12
Current Path : /proc/self/root/usr/lib64/python3.8/lib2to3/fixes/__pycache__/ |
Current File : //proc/self/root/usr/lib64/python3.8/lib2to3/fixes/__pycache__/fix_intern.cpython-38.pyc |
U e5dx � @ s6 d Z ddlmZ ddlmZmZ G dd� dej�ZdS )z/Fixer for intern(). intern(s) -> sys.intern(s)� )� fixer_base)� ImportAndCall�touch_importc @ s e Zd ZdZdZdZdd� ZdS )� FixInternTZprez� power< 'intern' trailer< lpar='(' ( not(arglist | argument<any '=' any>) obj=any | obj=arglist<(not argument<any '=' any>) any ','> ) rpar=')' > after=any* > c C sR |r2|d }|r2|j | jjkr2|jd jdkr2d S d}t|||�}td d|� |S )N�obj� > �**�*)�sys�internr )�typeZsymsZargumentZchildren�valuer r )�selfZnodeZresultsr �names�new� r �0/usr/lib64/python3.8/lib2to3/fixes/fix_intern.py� transform s �zFixIntern.transformN)�__name__� __module__�__qualname__Z BM_compatible�orderZPATTERNr r r r r r s r N)�__doc__� r Z fixer_utilr r ZBaseFixr r r r r �<module> s