﻿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
21321	File.__iter__().chunk python3 compatibility	jeremiahsavage@…	nobody	"In testing django-downloadview for a project, I found one of it's classes, `PathDownloadView` worked with python2.7, but not with python3.3. I've made the following change to `django/core/files/base.py` in `Files.__iter()` and now I am able to use `PathDownloadView` and `StorageDownloadView`.

from 
{{{
chunk_buffer = BytesIO(chunk)
}}}

to

{{{
if type(chunk) is str:
    chunk_buffer = BytesIO(str.encode(chunk))
elif type(chunk) is bytes:
    chunk_buffer = BytesIO(chunk)
}}}"	New feature	closed	Core (Other)	dev	Normal	wontfix	python3		Accepted	1	0	0	1	0	0
