mypy: Add comment on ConfigParser.readfp 'type: ignore'.

readfp remains valid but is deprecated, so is not in the python3 stubs.
This commit is contained in:
neiljp (Neil Pilgrim) 2017-11-15 08:57:50 -08:00 committed by Tim Abbott
parent 761e3e5855
commit 03f5e9110b

View file

@ -125,7 +125,7 @@ class ExternalBotHandler(object):
config = configparser.ConfigParser()
try:
with open(conf_file_path) as conf:
config.readfp(conf) # type: ignore
config.readfp(conf) # type: ignore # readfp->read_file in python 3, so not in stubs
except IOError:
if optional:
return dict()