api: replaced formatting with fstrings
This commit is contained in:
parent
ee4ac9d7b0
commit
555d39bde6
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue