diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-11 15:20:48 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-11 15:20:48 -0500 |
commit | 800f3b13ed9c1ea52fbd6544dc902ebd7a721733 (patch) | |
tree | 08e80e47a427c49f3b0540c3c6b4d35aee7e707f /mako/pyparser.py | |
parent | 3bbeaef7d5576fcefd1ccec3661ce7e3fd454094 (diff) | |
download | external_python_mako-800f3b13ed9c1ea52fbd6544dc902ebd7a721733.tar.gz external_python_mako-800f3b13ed9c1ea52fbd6544dc902ebd7a721733.tar.bz2 external_python_mako-800f3b13ed9c1ea52fbd6544dc902ebd7a721733.zip |
2.4-3.3 pass in place
Diffstat (limited to 'mako/pyparser.py')
-rw-r--r-- | mako/pyparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mako/pyparser.py b/mako/pyparser.py index f772dae..164b106 100644 --- a/mako/pyparser.py +++ b/mako/pyparser.py @@ -33,7 +33,7 @@ else: try: import _ast util.restore__ast(_ast) - from . import _ast_util + from mako import _ast_util except ImportError: _ast = None from compiler import parse as compiler_parse @@ -48,7 +48,7 @@ def parse(code, mode='exec', **exception_kwargs): if _ast: return _ast_util.parse(code, '<unknown>', mode) else: - if isinstance(code, compat.text_types): + if isinstance(code, compat.text_type): code = code.encode('ascii', 'backslashreplace') return compiler_parse(code, mode) except Exception: |