Clean up uses of some deprecated features.

Reported by Neal Norwitz on python-dev.
This commit is contained in:
Fred Drake 2002-04-26 02:29:55 +00:00
parent 89e3ee0ccf
commit d451ec1cdb
3 changed files with 20 additions and 17 deletions

View file

@ -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,