From 661935f9e50a4b64c7426aeed2468c145328a703 Mon Sep 17 00:00:00 2001 From: Phil Gyford Date: Tue, 13 Aug 2024 16:30:37 +0100 Subject: [PATCH] Fix syntax error in pre python 3.12 versions --- ditto/flickr/management/commands/fetch_flickr_account_user.py | 2 +- ditto/twitter/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ditto/flickr/management/commands/fetch_flickr_account_user.py b/ditto/flickr/management/commands/fetch_flickr_account_user.py index 78bb637..cde783b 100644 --- a/ditto/flickr/management/commands/fetch_flickr_account_user.py +++ b/ditto/flickr/management/commands/fetch_flickr_account_user.py @@ -66,5 +66,5 @@ def handle(self, *args, **options): if options.get("verbosity", 1) > 0: self.stderr.write( "Failed to fetch a Flickr ID for this Account: " - f"{id_result["messages"][0]}" + f"{id_result['messages'][0]}" ) diff --git a/ditto/twitter/utils.py b/ditto/twitter/utils.py index 8b97f1c..acc1076 100644 --- a/ditto/twitter/utils.py +++ b/ditto/twitter/utils.py @@ -118,8 +118,8 @@ def htmlify_tweet(json_data): if (urls_count + media_count) > 0 and urls_count > 0: for url in ents["urls"]: html = html.replace( - f'', - f'', + f'', + f'', ) if media_count > 0: