]> granicus.if.org Git - python/commitdiff
Correction after second code path test.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 9 Feb 2001 05:37:25 +0000 (05:37 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 9 Feb 2001 05:37:25 +0000 (05:37 +0000)
Lib/ConfigParser.py

index d36f11d54174e2c98d41f101c7606a185759431b..9d55ca76283a53869a1024e6f4c93148e9df07e8 100644 (file)
@@ -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