api: replaced formatting with fstrings

This commit is contained in:
RhodeCode Admin 2023-05-11 11:59:23 +02:00
parent ee4ac9d7b0
commit 555d39bde6

View file

@ -392,7 +392,7 @@ class RoutePredicate(object):
self.val = val
def text(self):
return 'jsonrpc route = %s' % self.val
return f'jsonrpc route = {self.val}'
phash = text
@ -412,7 +412,7 @@ class NotFoundPredicate(object):
self.methods = config.registry.jsonrpc_methods
def text(self):
return 'jsonrpc method not found = {}.'.format(self.val)
return f'jsonrpc method not found = {self.val}'
phash = text
@ -425,7 +425,7 @@ class MethodPredicate(object):
self.method = val
def text(self):
return 'jsonrpc method = %s' % self.method
return f'jsonrpc method = {self.method}'
phash = text