summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/config.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-01-22 21:14:48 +0100
committerKali Kaneko <kali@leap.se>2018-01-25 01:19:18 +0100
commit7e05218519b1306a838a3fccfe342b8260af5b75 (patch)
tree4b0f859885be87f9c7ea9b79ee0740b22a8be414 /src/leap/bitmask/config.py
parent2d72f6eb4b220c8dfa3c64b2f6b82365791f0424 (diff)
[bug] several fixes after review
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)