Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return context manager from open_file_for_reading #133

Merged

Conversation

speleo3
Copy link
Collaborator

@speleo3 speleo3 commented Nov 1, 2021

Ensures that file handles will be closed.

Alternative to #132

/cc @stefdoerr

@codecov
Copy link

codecov bot commented Nov 1, 2021

Codecov Report

Merging #133 (ed087b0) into master (68007f0) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #133      +/-   ##
==========================================
+ Coverage   73.05%   73.07%   +0.02%     
==========================================
  Files          24       25       +1     
  Lines        3963     3967       +4     
==========================================
+ Hits         2895     2899       +4     
  Misses       1068     1068              
Impacted Files Coverage Δ
propka/input.py 96.15% <100.00%> (ø)
propka/__init__.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68007f0...ed087b0. Read the comment docs.

Copy link
Collaborator

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

lgtm

@intendo intendo merged commit 1719783 into jensengroup:master Nov 1, 2021
@speleo3 speleo3 deleted the open_file_for_reading_context_manager branch December 10, 2023 21: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.

4 participants