From 56f4d3b2a8d05286514b69b195162950c4b301d8 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 4 Mar 2021 15:30:57 -0800 Subject: [PATCH] simple_lib: Replace deprecated ConfigParser.readfp call. Signed-off-by: Anders Kaseorg --- zulip_bots/zulip_bots/simple_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/simple_lib.py b/zulip_bots/zulip_bots/simple_lib.py index ae16847..58e9e96 100644 --- a/zulip_bots/zulip_bots/simple_lib.py +++ b/zulip_bots/zulip_bots/simple_lib.py @@ -92,6 +92,6 @@ class TerminalBotHandler: config = configparser.ConfigParser() with open(self.bot_config_file) as conf: - config.readfp(conf) # type: ignore # readfp->read_file in python 3, so not in stubs + config.read_file(conf) return dict(config.items(bot_name))