Mercurial > cpython-lru_cache-weakref
diff Lib/ConfigParser.py @ 16481:811b0ccb62ae legacy-trunk
Correction after second code path test.
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Fri, 09 Feb 2001 05:37:25 +0000 |
| parents | e97217f5b323 |
| children | 5f3a8350615c |
line wrap: on
line diff
--- a/Lib/ConfigParser.py Fri Feb 09 05:19:09 2001 +0000 +++ b/Lib/ConfigParser.py Fri Feb 09 05:37:25 2001 +0000 @@ -315,7 +315,7 @@ 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
