diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-02-20 21:24:49 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-02-20 21:24:49 -0500 |
commit | 779e1f330ee112500f862d5fdf056654abd48d37 (patch) | |
tree | b17a43b3a7e6fcf6ec04de57f803551266302eb0 /mako/template.py | |
parent | b809f95b4e5327b8dab10c923226ae6047399404 (diff) | |
download | external_python_mako-779e1f330ee112500f862d5fdf056654abd48d37.tar.gz external_python_mako-779e1f330ee112500f862d5fdf056654abd48d37.tar.bz2 external_python_mako-779e1f330ee112500f862d5fdf056654abd48d37.zip |
- [bug] Fixed bug whereby an exception in Python 3
against a module compiled to the filesystem would
fail trying to produce a RichTraceback due to the
content being in bytes. [ticket:209]
Diffstat (limited to 'mako/template.py')
-rw-r--r-- | mako/template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/template.py b/mako/template.py index f140a08..9c64987 100644 --- a/mako/template.py +++ b/mako/template.py @@ -601,7 +601,7 @@ class ModuleInfo(object): if self.module_source is not None: return self.module_source else: - return util.read_file(self.module_filename) + return util.read_python_file(self.module_filename) @property def source(self): |