From 93db38b023e90e2d3ad4ef36f6e6886278e08105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20M=C3=A9nager?= <herve.menager@gmail.com> Date: Mon, 7 Dec 2020 20:20:34 +0100 Subject: [PATCH] remove f-strings for py2 compatibility --- biodblinks/lablinks/command.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/biodblinks/lablinks/command.py b/biodblinks/lablinks/command.py index a435bb1..6e501fe 100644 --- a/biodblinks/lablinks/command.py +++ b/biodblinks/lablinks/command.py @@ -23,7 +23,7 @@ class LabsLinkCommand(BaseCommand): def generate_profile_file(self, profile_file_path): self.stdout.write( - self.style.SUCCESS(f"Generating the Profile file in {profile_file_path}...") + self.style.SUCCESS("Generating the Profile file in {profile_file_path}...".format(profile_file_path=profile_file_path)) ) provider_id = settings.LABLINKS_PROVIDER_ID resource_name = settings.LABLINKS_RESOURCE_NAME @@ -44,13 +44,13 @@ class LabsLinkCommand(BaseCommand): profile_file.write(xml_string) self.stdout.write( self.style.SUCCESS( - f"Successfully generated the Profile file in {profile_file_path}..." + "Successfully generated the Profile file in {profile_file_path}...".format(profile_file_path=profile_file_path) ) ) def generate_links_file(self, links_file_path): self.stdout.write( - self.style.SUCCESS(f"Generating the Links file in {links_file_path}...") + self.style.SUCCESS("Generating the Links file in {links_file_path}...".format(links_file_path=links_file_path)) ) XMLSerializer = serializers.get_serializer("labslink-xml") xml_serializer = XMLSerializer() @@ -61,7 +61,7 @@ class LabsLinkCommand(BaseCommand): links_file.write(xml_string) self.stdout.write( self.style.SUCCESS( - f"Successfully generated the Links file in {links_file_path}..." + "Successfully generated the Links file in {links_file_path}...".format(links_file_path=links_file_path) ) ) -- GitLab