﻿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
22773	makemessages crashes with empty templatized files	anonymous	Claude Paroz	"If templatize return empty string, then raise exception on fp.write.

django 1.7b4
makemessages.py:97
{{{
content = templatize(src_data, orig_file[2:])  # return '' (str)
with io.open(os.path.join(self.dirpath, thefile), ""w"", encoding='utf-8') as fp:
    fp.write(content)  # TypeError: must be unicode, not str
}}}

Tested in Windows7x64, Python 2.7.7x87
"	Bug	closed	Core (Management commands)	1.7-beta-2	Normal	fixed	makemessages		Accepted	0	0	0	0	0	0
