﻿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
10541	cannot save file from a pipe on Python 2	liangent	nobody	"code like this:
{{{

r, w = os.pipe()
if os.fork() == 0: # child
    os.close(r)
    os.dup2(w, sys.stdout.fileno())
    print '123'

os.close(w)
os.wait3()

fo = os.fdopen(r, 'rb')
r.s.save('sout', File(fo))
os.close(r)

}}}

the content in pipe cannot be saved. however if i change {{{File(fo)}}} to {{{ContentFile(fo.read())}}}, it can be saved correctly"	Bug	closed	File uploads/storage	1.3	Normal	worksforme		jonas-django@…	Accepted	0	0	0	0	0	0
