Skip to content

Commit

Permalink
[FIX] smile_upgrade: fix DeprecationWarning
Browse files Browse the repository at this point in the history
DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  • Loading branch information
isabellerichard committed Apr 30, 2021
1 parent d909e88 commit be1081c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smile_upgrade/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def load(self):
return
config = ConfigParser()
try:
config.readfp(open(config_file))
config.read_file(open(config_file))
for (key, value) in config.items('options'):
if value in ('True', 'False'):
value = safe_eval(value)
Expand Down

0 comments on commit be1081c

Please sign in to comment.