configparser.ConfigParser.readfp renamed to read_file
This commit is contained in:
parent
5324601bf3
commit
6379953b24
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def parseConfigFile(configFile=None):
|
|||
try:
|
||||
with open(configFile, 'r', encoding='utf-8') as fh:
|
||||
try:
|
||||
configs.readfp(fh)
|
||||
configs.read_file(fh)
|
||||
except configparser.Error:
|
||||
print(traceback.format_exc())
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue