mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Clean up uses of some deprecated features.
Reported by Neal Norwitz on python-dev.
This commit is contained in:
parent
89e3ee0ccf
commit
d451ec1cdb
3 changed files with 20 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue