From 31b02513aa4616879f2146df49a6261b5f983b81 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 20 May 2019 09:32:58 -0400 Subject: calcurse-caldav: replace readfp() by read_file() Addresses GitHub issue #209. Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3-70-g09d2