Replace deprecated parser.readfp call with parser.read_file

As recommended by the current warning ``DeprecationWarning: This method
will be removed in future versions.  Use 'parser.read_file()' instead.``

Change-Id: Ic4cbc4577519a60ba7fd60df05ff50bd8fccb149
This commit is contained in:
Lee Yarwood 2019-04-15 12:08:34 +01:00
parent 1298470c81
commit ee70347b02
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ def read_dashboard_file(dashboard_file):
raise ValueError("dashboard file '%s' is missing or "
"is not readable" % dashboard_file)
dashboard = configparser.ConfigParser()
dashboard.readfp(open(dashboard_file))
dashboard.read_file(open(dashboard_file))
return dashboard