Skip to content

Commit

Permalink
f-strings are not available in python2
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Oct 15, 2023
1 parent 99db182 commit 063b164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plone/restapi/services/navroot/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, context, request):
self.request = request

def __call__(self, expand=False):
result = {"navroot": {"@id": f"{self.context.absolute_url()}/@navroot"}}
result = {"navroot": {"@id": "{}/@navroot".format(self.context.absolute_url())}}
if not expand:
return result

Expand Down
2 changes: 1 addition & 1 deletion src/plone/restapi/services/site/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, context, request):
self.request = request

def __call__(self, expand=False):
result = {"site": {"@id": f"{self.context.absolute_url()}/@site"}}
result = {"site": {"@id": "{}/@site".format(self.context.absolute_url())}}
if not expand:
return result

Expand Down

0 comments on commit 063b164

Please sign in to comment.