Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-biodblinks
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
django-biodblinks
Commits
93db38b0
Commit
93db38b0
authored
4 years ago
by
Hervé Ménager
Browse files
Options
Downloads
Patches
Plain Diff
remove f-strings for py2 compatibility
parent
cedbae6a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#42912
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biodblinks/lablinks/command.py
+4
-4
4 additions, 4 deletions
biodblinks/lablinks/command.py
with
4 additions
and
4 deletions
biodblinks/lablinks/command.py
+
4
−
4
View file @
93db38b0
...
@@ -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
)
)
)
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment