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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user