summaryrefslogtreecommitdiff
path: root/numpy/array_api/_manipulation_functions.py
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2021-08-21 19:12:26 +0200
committerAntony Lee <anntzer.lee@gmail.com>2021-08-22 22:19:24 +0200
commit14dc7d84adbfafd994d87da47170796f527af09d (patch)
tree2c252871d2f2e89f68dfd57645443cc572c3d003 /numpy/array_api/_manipulation_functions.py
parent1fdfdfa97b0528f67f8fcf826f1e33f45569340a (diff)
downloadnumpy-14dc7d84adbfafd994d87da47170796f527af09d.tar.gz
MAINT: Use a contextmanager to ensure loadtxt closes the input file.
This seems easier to track that a giant try... finally. Also move the `fencoding` initialization to within the contextmanager, in the rather unlikely case an exception occurs during the call to `getpreferredencoding`.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions