aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2019-05-20 09:32:58 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2019-05-26 10:04:28 -0400
commit31b02513aa4616879f2146df49a6261b5f983b81 (patch)
treee4790cc879f88a8a62af10eba86c301cb93cedf9
parent62fe506e526d8c2d0ae6d8d89d2cddfb3ef040d1 (diff)
downloadcalcurse-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>
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py2
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))