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

Added file object to '_closable_objects' to close at end of request #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 20, 2019

  1. Added file object to '_closable_objects' to close at end of request

    This commit fixes ResourceWarnings in Python 3 where file objects
    do not appear to be closed at the end of the request, and the
    Django server will emit ResourceWarnings about unclosed files.
    The `_closable_objects` list is managed by the base FileResponse
    class in Django and will call `.close()` on objects at the end
    of the request.
    chugcup committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    2515747 View commit details
    Browse the repository at this point in the history