From 532656ca33d5309407b1c7c003a666dc0788258b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 26 Jun 2019 21:34:12 +0100 Subject: [PATCH] coding style: Whitespace fixes in tweet handling Remove unidiomatic spaces inside ( ). Remove a blank line in an unusual place. No functional change. Signed-off-by: Ian Jackson --- commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands.py b/commands.py index 721089d..512b4f7 100755 --- a/commands.py +++ b/commands.py @@ -571,12 +571,11 @@ def getTweet(urlstring,twitapi,inclusion=False,recurlvl=0): tweeter_name = tweeter_name + " RTing " + status.user.name #.encode('UTF-8', 'replace') tweetText = status.full_text if status.media: - replacements = defaultdict( list ) + replacements = defaultdict(list) for medium in status.media: replacements[medium.url].append(medium.media_url_https) for k,v in replacements.items(): - v = [re.sub(r"/tweet_video_thumb/([\w\-]+).jpg", r"/tweet_video/\1.mp4", link) for link in v] if len(v) > 1: replacementstring = "[" + " ; ".join(v) +"]" -- 2.30.2