From 0a3959d155ac75ac1a3b144812b6f4f91b91d91f Mon Sep 17 00:00:00 2001 From: ljhuang Date: Fri, 22 Jul 2022 16:21:30 +0800 Subject: Replace deprecated readfp method with read_file The readfp method has been deprecated since version 3.2 [1]. [1] https://docs.python.org/3/library/configparser.html?highlight=deprecated#configparser.ConfigParser.readfp Change-Id: Ib4d13e850e47c80ca6ec601b9e195337d9a403e0 --- doc/ext/support_matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ext/support_matrix.py b/doc/ext/support_matrix.py index e0021b2a..0c84c24c 100644 --- a/doc/ext/support_matrix.py +++ b/doc/ext/support_matrix.py @@ -101,7 +101,7 @@ class SupportMatrixDirective(rst.Directive): "support-matrix.ini") rel_fpath, fpath = env.relfn2path(fname) with open(fpath) as fp: - cfg.readfp(fp) + cfg.read_file(fp) # This ensures that the docs are rebuilt whenever the # .ini file changes -- cgit v1.2.1