﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9075	Missing destination.close()	bmsleight	nobody	"In page http://docs.djangoproject.com/en/dev/topics/http/file-uploads/

{{{
def handle_uploaded_file(f):
    destination = open('some/file/name.txt', 'wb+')
    for chunk in f.chunks():
        destination.write(chunk)
}}}

IMHO should read:-
{{{
def handle_uploaded_file(f):
    destination = open('some/file/name.txt', 'wb+')
    for chunk in f.chunks():
        destination.write(chunk)
        destination.close()
}}}

Regards,
Brendan"		closed	Documentation	1.0		fixed			Unreviewed	0	0	0	0	0	0
