HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/fix_annotations.pyo
�
�A�[c@sbdZddlmZddlmZddlmZdZd�Zdej	fd��YZ
d	S(
u&
Fixer to remove function annotations
i����(t
fixer_base(ttoken(tsymsu)Removing function annotations completely.cCs|jdS(Ni(tchildren(tnode((sT/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/fix_annotations.pytparam_without_annotationsstFixAnnotationscBs&eZeZd�ZdZd�ZRS(cCs,|js(t|_|j|d|�ndS(Ntreason(twarnedtTruetwarning(tselfRR((sT/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/fix_annotations.pyt	warn_onces		um
              funcdef< 'def' any parameters< '(' [params=any] ')' > ['->' ret=any] ':' any* >
              cCs
|jd�}|jd�}|dk	rW|j|dt�|jj�|j�n|dkrgdS|jtjkr�x�|j	D]A}|jtj
kr�|j|dt�|jt|��q�q�Wn;|jtj
kr|j|dt�|jt|��ndS(uK
        This just strips annotations from the funcdef completely.
        uparamsuretRN(
tgettNoneRtwarning_texttprev_siblingtremovettypeRt
typedargslistRttnametreplaceR(RRtresultstparamstrettparam((sT/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/fix_annotations.pyt	transforms 

(t__name__t
__module__tFalseRRtPATTERNR(((sT/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/fix_annotations.pyRs	N(t__doc__tlib2to3Rt
lib2to3.pgen2Rtlib2to3.fixer_utilRRRtBaseFixR(((sT/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/fix_annotations.pyt<module>s