Commit 71f85f0c authored by Eric S. Raymond's avatar Eric S. Raymond

Correction after second code path test.

parent 733d20c6
...@@ -315,7 +315,7 @@ class ConfigParser: ...@@ -315,7 +315,7 @@ class ConfigParser:
def getboolean(self, section, option): def getboolean(self, section, option):
v = self.get(section, option) v = self.get(section, option)
val = v.atoi() val = int(v)
if val not in (0, 1): if val not in (0, 1):
raise ValueError, 'Not a boolean: %s' % v raise ValueError, 'Not a boolean: %s' % v
return val return val
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment