summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRohit Goswami <rgoswami@quansight.com>2022-03-16 19:45:02 +0000
committerGitHub <noreply@github.com>2022-03-16 19:45:02 +0000
commit6258d18a0d9612d8a2d67797d3c1dcef3f5ef5b0 (patch)
tree9f9f9079122f24cf776075c28ab1fa2c4bb68489 /numpy
parent95a7bb4746197a05fd23dbe39c7b3dbb105a18d9 (diff)
parent400a2756994e42f34e7930f8cc222a2816a6c082 (diff)
downloadnumpy-6258d18a0d9612d8a2d67797d3c1dcef3f5ef5b0.tar.gz
Merge pull request #21205 from sunt05/sunt05/issue21204
BUG: f2py cannot read in customised f2cmap file; fix #21204
Diffstat (limited to 'numpy')
-rw-r--r--numpy/f2py/capi_maps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/capi_maps.py b/numpy/f2py/capi_maps.py
index b4fab71f9..1f43207db 100644
--- a/numpy/f2py/capi_maps.py
+++ b/numpy/f2py/capi_maps.py
@@ -190,7 +190,7 @@ def load_f2cmap_file(f2cmap_file):
try:
outmess('Reading f2cmap from {!r} ...\n'.format(f2cmap_file))
with open(f2cmap_file, 'r') as f:
- d = eval(f.read(), {}, {})
+ d = eval(f.read().lower(), {}, {})
for k, d1 in d.items():
for k1 in d1.keys():
d1[k1.lower()] = d1[k1]
@@ -505,7 +505,7 @@ def sign2map(a, var):
init,init.r,init.i,pytype
vardebuginfo,vardebugshowvalue,varshowvalue
varrformat
-
+
intent
"""
out_a = a