Pylons/pyramid — pull request #725 by avolkov (2012-11-13 23:30:13+00:00)
Title: Fix for issue #721

Commit 6ec5a699bbd24e fixes issue #721 by forcing input to be basestring and returning basestring according PEP-3333. I used python version detection using webob.compat.text_type.

Tested on Python 2.7.3rc2 and Python 3.2.3.

Also I fixed several related tests, so they expect render_view to return basestring.