diff Lib/ConfigParser.py @ 23281:f5fd7e295897 legacy-trunk

Clean up uses of some deprecated features. Reported by Neal Norwitz on python-dev.
author Fred Drake <fdrake@acm.org>
date Fri, 26 Apr 2002 02:29:55 +0000
parents a9dd5e6d6805
children 21b1d742e4a7
line wrap: on
line diff
--- a/Lib/ConfigParser.py	Fri Apr 26 01:58:53 2002 +0000
+++ b/Lib/ConfigParser.py	Fri Apr 26 02:29:55 2002 +0000
@@ -301,10 +301,10 @@
         return conv(self.get(section, option))
 
     def getint(self, section, option):
-        return self.__get(section, string.atoi, option)
+        return self.__get(section, int, option)
 
     def getfloat(self, section, option):
-        return self.__get(section, string.atof, option)
+        return self.__get(section, float, option)
 
     def getboolean(self, section, option):
         states = {'1': 1, 'yes': 1, 'true': 1, 'on': 1,