diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-09-11 10:38:53 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-09-11 10:38:53 -0400 |
| commit | e1086cd37e7075102fe9b895372ecacb98732457 (patch) | |
| tree | 1e93504cb3552f6cbc707f6decd11f0c456bfe23 /mako/pyparser.py | |
| parent | c5d7b54edc0cf35191e18663e5d35707d1f7592e (diff) | |
| download | external_python_mako-e1086cd37e7075102fe9b895372ecacb98732457.tar.gz external_python_mako-e1086cd37e7075102fe9b895372ecacb98732457.tar.bz2 external_python_mako-e1086cd37e7075102fe9b895372ecacb98732457.zip | |
move the function out to compat so we don't import _ast_util if _ast isn't present
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 be292a8..75301cc 100644 --- a/mako/pyparser.py +++ b/mako/pyparser.py @@ -11,8 +11,7 @@ module is used. """ from mako import exceptions, util, compat -from mako._ast_util import arg_stringname -from mako.compat import StringIO +from mako.compat import StringIO, arg_stringname import operator if compat.py3k: @@ -41,6 +40,7 @@ except ImportError: from compiler import visitor + def parse(code, mode='exec', **exception_kwargs): """Parse an expression into AST""" |
