aboutsummaryrefslogtreecommitdiffstats
path: root/mako/ast.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-04-28 17:33:15 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-04-28 17:33:15 -0400
commit12856b1297451b26468657218cc3e176b732381f (patch)
treec585b40516fb3ded666f74af2ba5f87d709a5c1e /mako/ast.py
parent70981099103828afbe33eb4d1f668dc20894b399 (diff)
downloadexternal_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.py5
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" %