calcurse-caldav: replace readfp() by read_file()

Addresses GitHub issue #209.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2019-05-20 09:32:58 -04:00
parent 62fe506e52
commit 31b02513aa

View File

@ -566,7 +566,7 @@ config = configparser.RawConfigParser()
if verbose:
print('Loading configuration from ' + configfn + '...')
try:
config.readfp(open(configfn))
config.read_file(open(configfn))
except FileNotFoundError as e:
die('Configuration file not found: {}'.format(configfn))