summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2018-11-02 09:39:41 -0700
committerTyler Reddy <tyler.je.reddy@gmail.com>2018-11-02 09:46:39 -0700
commit1e1b45c55f75f06d8b57703c69fbd6499c71ddd5 (patch)
tree76f99d1c4ef308130bbe87c96a250605e22e24b2 /numpy/f2py
parent9cc9f01da14d0eb7904dfe4351d393ff57795e15 (diff)
downloadnumpy-1e1b45c55f75f06d8b57703c69fbd6499c71ddd5.tar.gz
MAINT, TST: check for unreachable code paths
* use vulture to check for unreachable Python code paths in Azure CI * fix up an unreachable path in f2py/capi_maps.py
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/capi_maps.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/f2py/capi_maps.py b/numpy/f2py/capi_maps.py
index 8e63d3cff..c41dd77c6 100644
--- a/numpy/f2py/capi_maps.py
+++ b/numpy/f2py/capi_maps.py
@@ -718,10 +718,7 @@ def modsign2map(m):
def cb_sign2map(a, var, index=None):
ret = {'varname': a}
- if index is None or 1: # disable 7712 patch
- ret['varname_i'] = ret['varname']
- else:
- ret['varname_i'] = ret['varname'] + '_' + str(index)
+ ret['varname_i'] = ret['varname']
ret['ctype'] = getctype(var)
if ret['ctype'] in c2capi_map:
ret['atype'] = c2capi_map[ret['ctype']]