Commit 0cd3af64 authored by Antoine Catton's avatar Antoine Catton

Use basestring class instead of str.

parent 2f07f9a0
......@@ -101,7 +101,7 @@ class Recipe:
if not buildout.has_section('slap-parameter'):
buildout.add_section('slap-parameter')
for parameter, value in self.parameter_dict.items():
if isinstance(value, str):
if isinstance(value, basestring):
buildout.set('slap-parameter', parameter, value)
else:
buildout.set('slap-parameter', parameter, json.dumps(value))
......
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