calcurse-caldav: replace readfp() by read_file()
Addresses GitHub issue #209. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
62fe506e52
commit
31b02513aa
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user