Skip to content
Snippets Groups Projects
Commit 93db38b0 authored by Hervé Ménager's avatar Hervé Ménager
Browse files

remove f-strings for py2 compatibility

parent cedbae6a
No related branches found
No related tags found
No related merge requests found
Pipeline #42912 failed
...@@ -23,7 +23,7 @@ class LabsLinkCommand(BaseCommand): ...@@ -23,7 +23,7 @@ class LabsLinkCommand(BaseCommand):
def generate_profile_file(self, profile_file_path): def generate_profile_file(self, profile_file_path):
self.stdout.write( 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 provider_id = settings.LABLINKS_PROVIDER_ID
resource_name = settings.LABLINKS_RESOURCE_NAME resource_name = settings.LABLINKS_RESOURCE_NAME
...@@ -44,13 +44,13 @@ class LabsLinkCommand(BaseCommand): ...@@ -44,13 +44,13 @@ class LabsLinkCommand(BaseCommand):
profile_file.write(xml_string) profile_file.write(xml_string)
self.stdout.write( self.stdout.write(
self.style.SUCCESS( 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): def generate_links_file(self, links_file_path):
self.stdout.write( 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") XMLSerializer = serializers.get_serializer("labslink-xml")
xml_serializer = XMLSerializer() xml_serializer = XMLSerializer()
...@@ -61,7 +61,7 @@ class LabsLinkCommand(BaseCommand): ...@@ -61,7 +61,7 @@ class LabsLinkCommand(BaseCommand):
links_file.write(xml_string) links_file.write(xml_string)
self.stdout.write( self.stdout.write(
self.style.SUCCESS( 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)
) )
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment