diff options
Diffstat (limited to 'mako/codegen.py')
| -rw-r--r-- | mako/codegen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mako/codegen.py b/mako/codegen.py index 2779a6d..045d03c 100644 --- a/mako/codegen.py +++ b/mako/codegen.py @@ -1,5 +1,5 @@ # mako/codegen.py -# Copyright (C) 2006-2013 the Mako authors and contributors <see AUTHORS file> +# Copyright (C) 2006-2014 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php @@ -543,7 +543,7 @@ class _GenerateRenderMethod(object): """write a locally-available callable referencing a top-level def""" funcname = node.funcname namedecls = node.get_argument_expressions() - nameargs = node.get_argument_expressions(include_defaults=False) + nameargs = node.get_argument_expressions(as_call=True) if not self.in_def and ( len(self.identifiers.locally_assigned) > 0 or @@ -864,7 +864,7 @@ class _GenerateRenderMethod(object): if node.is_anonymous: self.printer.writeline("%s()" % node.funcname) else: - nameargs = node.get_argument_expressions(include_defaults=False) + nameargs = node.get_argument_expressions(as_call=True) nameargs += ['**pageargs'] self.printer.writeline("if 'parent' not in context._data or " "not hasattr(context._data['parent'], '%s'):" |
