mirror of
https://github.com/python/cpython.git
synced 2025-10-13 10:23:28 +00:00
Correction after second code path test.
This commit is contained in:
parent
9eb54d9828
commit
f296019cc5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue