diff options
| author | Rohit Goswami <rgoswami@quansight.com> | 2022-03-16 19:45:02 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-16 19:45:02 +0000 |
| commit | 6258d18a0d9612d8a2d67797d3c1dcef3f5ef5b0 (patch) | |
| tree | 9f9f9079122f24cf776075c28ab1fa2c4bb68489 /numpy | |
| parent | 95a7bb4746197a05fd23dbe39c7b3dbb105a18d9 (diff) | |
| parent | 400a2756994e42f34e7930f8cc222a2816a6c082 (diff) | |
| download | numpy-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.py | 4 |
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 |
