summaryrefslogtreecommitdiffstats
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index fe97c9e..e52f620 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -301,10 +301,10 @@ class ConfigParser:
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,