Opened 8 years ago

Closed 8 years ago

#27020 closed Cleanup/optimization (fixed)

Close more files with "with"

Reported by: Ville Skyttä Owned by: nobody
Component: Uncategorized Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

A few file-like objects across the tree could be closed more explicitly/eagerly, and also on error.

https://github.com/django/django/pull/7024

Change History (1)

comment:1 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: newclosed

In a2fb2b3a:

Fixed #27020 -- Used a context manager to close files.

Note: See TracTickets for help on using tickets.
Back to Top