Make run_wsgi.py python3 compliant & correct encoding problems
Cody Taylor
Branch: CodeMan99/mako:master
CodeMan99/mako:master
Branch: zzzeek/mako:master
zzzeek/mako:master
Merged
#11 · Created  · Last updated
Merged pull request
Merged in CodeMan99/mako (pull request #11)
6d43b55·Author: Mike Bayer·Closed by: Mike Bayer·2014-12-10
Description
Changes include: - Add future for python2 - Set "ascii" encoding for TemplateLookup - Remove text option for error handling (header is already set to HTML) - Break apart exception handling for clarity - Check that a file exists before opening it - Use open not file with 'rb' flags - Remove unnessary "default" extensions_map - Python3 style print statement
Changes include: - Add future for python2 - Set "ascii" encoding for TemplateLookup - Remove text option for error handling (header is already set to HTML) - Break apart exception handling for clarity - Check that a file exists before opening it - Use
open
notfile
with 'rb' flags - Remove unnessary "default"extensions_map
- Python3 style print statement