return boolean as expected.

This commit is contained in:
Faik Uygur
2006-07-06 11:00:31 +00:00
parent 085c07f0d4
commit a6175eb1c5
+3
View File
@@ -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