From: Eric S. Raymond Date: Fri, 9 Feb 2001 05:37:25 +0000 (+0000) Subject: Correction after second code path test. X-Git-Tag: v2.1b1~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f296019cc52477ad7c8f9f0f4b23b873f19cba7e;p=thirdparty%2FPython%2Fcpython.git Correction after second code path test. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index d36f11d54174..9d55ca76283a 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -315,7 +315,7 @@ class ConfigParser: def getboolean(self, section, option): v = self.get(section, option) - val = v.atoi() + val = int(v) if val not in (0, 1): raise ValueError, 'Not a boolean: %s' % v return val