Commit a2748676 authored by Vincent Pelletier's avatar Vincent Pelletier

Make "context" parameter really optional.

Reported by Timothee Lacroix.
parent b616a83a
...@@ -75,7 +75,7 @@ class Recipe(object): ...@@ -75,7 +75,7 @@ class Recipe(object):
self.context = context = {} self.context = context = {}
if _buildout_safe_dumps is not None: if _buildout_safe_dumps is not None:
context[DUMPS_KEY] = _buildout_safe_dumps context[DUMPS_KEY] = _buildout_safe_dumps
for line in options.get('context').splitlines(False): for line in options.get('context', '').splitlines(False):
if not line: if not line:
continue continue
expression_type, variable_name, expression = line.split(None, 2) expression_type, variable_name, expression = line.split(None, 2)
......
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