simple_lib: Replace deprecated ConfigParser.readfp call.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-03-04 15:30:57 -08:00
parent 717a549f4b
commit 56f4d3b2a8

View file

@ -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))