diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2019-05-20 09:32:58 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-05-26 10:04:28 -0400 |
commit | 31b02513aa4616879f2146df49a6261b5f983b81 (patch) | |
tree | e4790cc879f88a8a62af10eba86c301cb93cedf9 /contrib/caldav | |
parent | 62fe506e526d8c2d0ae6d8d89d2cddfb3ef040d1 (diff) | |
download | calcurse-31b02513aa4616879f2146df49a6261b5f983b81.tar.gz calcurse-31b02513aa4616879f2146df49a6261b5f983b81.zip |
calcurse-caldav: replace readfp() by read_file()
Addresses GitHub issue #209.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 7b9b56c..009a443 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -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)) |