﻿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
20604	Managing Files File code example opens file in write-mode, should open in read-mode	Chris Lasher <chris.lasher@…>	nobody	"In the second code example in the [https://docs.djangoproject.com/en/1.5/topics/files/#the-file-object Managing Files documentation on the File object], the file /tmp/hello.world is shown as being opened in write-mode, but it should actually be opened in read mode. Write-mode would destroy the contents of the file.

In other words, please change this
{{{
# Create a Python file object using open() and the with statement
>>> with open('/tmp/hello.world', 'w') as f:
>>>     myfile = File(f)
...
}}}

to this
{{{
# Create a Python file object using open() and the with statement
>>> with open('/tmp/hello.world') as f:
>>>     myfile = File(f)
...
}}}"	Bug	closed	Documentation	1.5	Normal	fixed			Unreviewed	0	0	0	0	1	0
