aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Bucket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pywarpx/Bucket.py')
-rw-r--r--Python/pywarpx/Bucket.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pywarpx/Bucket.py b/Python/pywarpx/Bucket.py
index 7817f8f86..61276c75a 100644
--- a/Python/pywarpx/Bucket.py
+++ b/Python/pywarpx/Bucket.py
@@ -60,6 +60,8 @@ class Bucket(object):
# --- For lists, tuples, and arrays make a space delimited string of the values.
# --- The lambda is needed in case this is a list of strings.
rhs = ' '.join(map(lambda s : repr(s).strip("'\""), value))
+ elif isinstance(value, bool):
+ rhs = 1 if value else 0
else:
rhs = value
attrstring = '{0}.{1} = {2}'.format(self.instancename, attr, repr(rhs).strip("'\""))