Commit 93db38b0 authored by Hervé Ménager's avatar Hervé Ménager
Browse files

remove f-strings for py2 compatibility

parent cedbae6a
Pipeline #42912 failed with stage
in 1 minute and 19 seconds
......@@ -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)
)
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment