Commit 78bf7d66 authored by Stefan Behnel's avatar Stefan Behnel

fix TempitaUtilityCode() usage without context

parent f114de0d
...@@ -392,6 +392,8 @@ def sub_tempita(s, context, file=None, name=None): ...@@ -392,6 +392,8 @@ def sub_tempita(s, context, file=None, name=None):
class TempitaUtilityCode(UtilityCode): class TempitaUtilityCode(UtilityCode):
def __init__(self, name=None, proto=None, impl=None, file=None, context=None, **kwargs): def __init__(self, name=None, proto=None, impl=None, file=None, context=None, **kwargs):
if context is None:
context = {}
proto = sub_tempita(proto, context, file, name) proto = sub_tempita(proto, context, file, name)
impl = sub_tempita(impl, context, file, name) impl = sub_tempita(impl, context, file, name)
super(TempitaUtilityCode, self).__init__( super(TempitaUtilityCode, self).__init__(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment