summaryrefslogtreecommitdiff
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-04-26 02:29:55 +0000
committerFred Drake <fdrake@acm.org>2002-04-26 02:29:55 +0000
commitd451ec1cdb7bd01786c492a485f3813502640daf (patch)
tree3906ea8d66868ce34c8fdaf6d706af75d218cf2c /Lib/ConfigParser.py
parent89e3ee0ccff975f30b81b40dec1ee1d7e6b09f9c (diff)
downloadcpython-git-d451ec1cdb7bd01786c492a485f3813502640daf.tar.gz
Clean up uses of some deprecated features.
Reported by Neal Norwitz on python-dev.
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 fe97c9e09c..e52f620604 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,