﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
485	Spurious TemplateNotFound errors in App Engine caused by invalid 'rbU' file mode in TemplateLoader.directory	Erik Swanson <erik.swanson@…>	cmlenz	"In TemplateLoader.directory, the file mode 'rbU' is specified, which is invalid.
('U' has no effect when a file is opened in binary mode 'b'.)

This is a showstopper In the App Engine environment (I'm using Python 2.7), where attempting to open a file with this mode results in ""IOError: invalid mode: rbU"" being raised.

This IoError is then incorrectly handled by TemplateLoader.load in the 'for loadfunc in search_path:' where there is a blind 'except IOError:' that suppresses it.

The result that 'raise TemplateNotFound(filename, search_path)' is reached even when the template exists.
"	defect	reopened	major	0.9	General	devel		appengine	
