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:
|
try:
|
||||||
with open(configFile, 'r', encoding='utf-8') as fh:
|
with open(configFile, 'r', encoding='utf-8') as fh:
|
||||||
try:
|
try:
|
||||||
configs.readfp(fh)
|
configs.read_file(fh)
|
||||||
except configparser.Error:
|
except configparser.Error:
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue