File: //lib/python3/dist-packages/numpy/f2py/__pycache__/common_rules.cpython-310.pyc
o
6��a= � @ sl d Z ddlmZ ejZddlmZmZmZm Z m
Z
ddlmZ ddlmZ ddl
mZ ddd�Zd d
� ZdS )
aM
Build common block mechanism for f2py2e.
Copyright 2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
$Date: 2005/05/06 10:57:33 $
Pearu Peterson
� )�__version__)�hasbody� hascommon�hasnote�
isintent_hide�outmess)� capi_maps)� func2subr)� rmbadnamec
s� g }t � �r#� d �� D ]\}}� fdd�|D �}|�|||f� qnt� �r5� d D ] }|t|d� }q+|rTg }g }|D ]} | d |vrQ|�| d � |�| � q=|S |S )N�commonc s i | ] }|� d | �qS )�vars� )�.0�v��blockr
�9/usr/lib/python3/dist-packages/numpy/f2py/common_rules.py�
<dictcomp> s z$findcommonblocks.<locals>.<dictcomp>�body� )r �items�appendr �findcommonblocks)
r �top�ret�key�value�vars_�b�tret�names�tr
r r r s&