Skip to content

Comments

MAINT: Change open() to with open()#17051

Merged
seberg merged 2 commits intonumpy:masterfrom
jakobjakobson13:cleanup_misc_utils
Aug 11, 2020
Merged

MAINT: Change open() to with open()#17051
seberg merged 2 commits intonumpy:masterfrom
jakobjakobson13:cleanup_misc_utils

Conversation

@jakobjakobson13
Copy link
Contributor

see #17012 item 13

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be surprised if this code is ever used any more, but this seems harmless.

Commit message should start with MAINT, but that can be fixed when merging

@jakobjakobson13 jakobjakobson13 changed the title change "for line in open()" to "with open() as f: ..." in numpy/distutils/misc_util.py MAINT: change "for line in open()" to "with open() as f: ..." in numpy/distutils/misc_util.py Aug 11, 2020
@seberg seberg merged commit 25fa87a into numpy:master Aug 11, 2020
@jakobjakobson13 jakobjakobson13 changed the title MAINT: change "for line in open()" to "with open() as f: ..." in numpy/distutils/misc_util.py MAINT: Use with open() instead of only open() Aug 11, 2020
@jakobjakobson13 jakobjakobson13 changed the title MAINT: Use with open() instead of only open() MAINT: Change open() to with open() Aug 11, 2020
@jakobjakobson13 jakobjakobson13 deleted the cleanup_misc_utils branch August 18, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants