summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-09 05:25:01 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-09 05:25:01 +0100
commit0a916360e7b3fe71183b825dd6899fc15c03d978 (patch)
tree547071c797a3a25aa35017022ef4d4f8032f63e6
parentc9362b1493b4169b4df82d8ed1a59ef524fadb1d (diff)
downloadcherrypy-git-0a916360e7b3fe71183b825dd6899fc15c03d978.tar.gz
🐛Replace use of deprecated ConfigParser.readfp
-rw-r--r--cherrypy/lib/reprconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/reprconf.py b/cherrypy/lib/reprconf.py
index 76381d7b..536b9417 100644
--- a/cherrypy/lib/reprconf.py
+++ b/cherrypy/lib/reprconf.py
@@ -188,7 +188,7 @@ class Parser(configparser.ConfigParser):
def dict_from_file(self, file):
if hasattr(file, 'read'):
- self.readfp(file)
+ self.read_file(file)
else:
self.read(file)
return self.as_dict()