diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-28 17:33:15 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-28 17:33:15 -0400 |
commit | 12856b1297451b26468657218cc3e176b732381f (patch) | |
tree | c585b40516fb3ded666f74af2ba5f87d709a5c1e /mako/ast.py | |
parent | 70981099103828afbe33eb4d1f668dc20894b399 (diff) | |
download | external_python_mako-12856b1297451b26468657218cc3e176b732381f.tar.gz external_python_mako-12856b1297451b26468657218cc3e176b732381f.tar.bz2 external_python_mako-12856b1297451b26468657218cc3e176b732381f.zip |
- will now be 1.0
- drop python 2.4, 2.5 support
- various pep8ing
Diffstat (limited to 'mako/ast.py')
-rw-r--r-- | mako/ast.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mako/ast.py b/mako/ast.py index 8f711b4..44355bc 100644 --- a/mako/ast.py +++ b/mako/ast.py @@ -8,7 +8,6 @@ code, as well as generating Python from AST nodes""" from mako import exceptions, pyparser, compat -from mako.compat import arg_stringname import re class PythonCode(object): @@ -107,8 +106,8 @@ class FunctionDecl(object): f.visit(expr) if not hasattr(self, 'funcname'): raise exceptions.CompileException( - "Code '%s' is not a function declaration" % code, - **exception_kwargs) + "Code '%s' is not a function declaration" % code, + **exception_kwargs) if not allow_kwargs and self.kwargs: raise exceptions.CompileException( "'**%s' keyword argument not allowed here" % |