Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
mako.exceptions Tries to do b"bytes".split() when rendering text_error_template, and fails (in Python 3) #209
Migrated issue, originally created by Anonymous
While trying to display error template, another exception is thrown because byte-strings don't have split().
"''During handling of the above exception, another exception occurred [...snip...] for line in module_source.split("\n"):
To "fix" this, change line 170 in mako/exceptions.py from:
I believe 'utf-8' will need to be replaced with something else.