diff options
author | ljhuang <huang.liujie@99cloud.net> | 2022-07-22 16:21:30 +0800 |
---|---|---|
committer | ljhuang <huang.liujie@99cloud.net> | 2022-07-22 17:21:43 +0800 |
commit | 0a3959d155ac75ac1a3b144812b6f4f91b91d91f (patch) | |
tree | 0d51e291c1bbe700d6ea6432cc8912022cf0d050 | |
parent | d10056178ae13c25289f8cdd41c48062da2aab62 (diff) | |
download | designate-0a3959d155ac75ac1a3b144812b6f4f91b91d91f.tar.gz |
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
-rw-r--r-- | doc/ext/support_matrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |