summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/config.py')
-rw-r--r--src/leap/bitmask/config.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/config.py b/src/leap/bitmask/config.py
index 17a20d3f..4fb1ff9b 100644
--- a/src/leap/bitmask/config.py
+++ b/src/leap/bitmask/config.py
@@ -96,8 +96,6 @@ class _ConfigurationSection(object):
return self.config.get(self.section, option, default, boolean)
def set(self, option, value):
- if value is True:
- value = 'true'
- elif value is False:
- value = 'false'
+ if isinstance(value, bool):
+ value = str(value)
return self.config.set(self.section, option, value)