From 239700d123950d9b3d6c01c1171e9e55c115213c Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Tue, 1 Aug 2017 17:20:52 +0200 Subject: [PATCH] deprecation warning for tweet parameter --- feed2toot/confparse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feed2toot/confparse.py b/feed2toot/confparse.py index b266009..2f2110a 100644 --- a/feed2toot/confparse.py +++ b/feed2toot/confparse.py @@ -50,7 +50,6 @@ class ConfParse: self.accept_bozo_exceptions = config.getboolean('feedparser', 'accept_bozo_exceptions') else: self.accept_bozo_exceptions = False - ########################### # # the rss section @@ -63,7 +62,9 @@ class ConfParse: ############################ oldconfoption = 'tweet' confoption = 'toot' + # manage 'tweet' for compatibility reason with first versions if config.has_option(section, oldconfoption): + logging.warn("Your configuration file uses a 'tweet' parameter instead of 'toot'. 'tweet' is deprecated and will be removed in Feed2toot 0.7") self.tweetformat = config.get(section, oldconfoption) elif config.has_option(section, confoption): self.tweetformat = config.get(section, confoption)