Skip to content

Commit

Permalink
Merge pull request #1053 from wright-group/codeql_warns
Browse files Browse the repository at this point in the history
Ensure setup.py properly closes files
  • Loading branch information
kameyer226 committed Mar 9, 2022
2 parents a8b4405 + ef7a65a commit 2706b3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@


def read(fname):
return open(os.path.join(here, fname)).read()
with open(os.path.join(here, fname)) as f:
return f.read()


extra_files = {
Expand Down

0 comments on commit 2706b3a

Please sign in to comment.