Replace deprecated ConfigParser method
ConfigParser.readfp() -> ConfigParser.read_file()
This commit is contained in:
@@ -250,7 +250,7 @@ class Config(object):
|
||||
config = configparser.ConfigParser()
|
||||
if os.path.exists(filename):
|
||||
with codecs.open(filename, encoding='utf-8') as fp:
|
||||
config.readfp(fp)
|
||||
config.read_file(fp)
|
||||
|
||||
return cls._parse_rtv_file(config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user