← Back
Editing: normalize_return.cpython-311.pyc
� cR�ax � �J � d Z ddlmZmZ ddlmZ ddlZ G d� de� � ZdS )z7 NormalizeReturn adds return statement where relevant. � )�CFG�YieldPoints)�TransformationNc �. � � e Zd ZdZ� fd�Zd� Zd� Z� xZS )�NormalizeReturna� Adds Return statement when they are implicit, and adds the None return value when not set >>> import gast as ast >>> from pythran import passmanager, backend >>> node = ast.parse("def foo(y): print(y)") >>> pm = passmanager.PassManager("test") >>> _, node = pm.apply(NormalizeReturn, node) >>> print(pm.dump(backend.Python, node)) def foo(y): print(y) return builtins.None c �b �� t t | � � � t � � d S )N)�superr �__init__r )�self� __class__s ��J/usr/lib/python3/dist-packages/pythran/transformations/normalize_return.pyr zNormalizeReturn.__init__ s'