return boolean as expected.
This commit is contained in:
@@ -116,6 +116,9 @@ class ConfigurationSection(object):
|
|||||||
if self.items:
|
if self.items:
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
if item[0] == attr:
|
if item[0] == attr:
|
||||||
|
if item[1] in ["True", "False"]:
|
||||||
|
return eval(item[1])
|
||||||
|
else:
|
||||||
return item[1]
|
return item[1]
|
||||||
|
|
||||||
# then fall back to defaults
|
# then fall back to defaults
|
||||||
|
|||||||
Reference in New Issue
Block a user