# HG changeset patch # User RhodeCode Admin # Date 2023-05-11 09:59:23 # Node ID 5218c510185fd5d42fdd590bfe79b7aa252e03f2 # Parent c087bd924488ee1984f1855e6035cd951f0399c2 api: replaced formatting with fstrings diff --git a/rhodecode/api/__init__.py b/rhodecode/api/__init__.py --- a/rhodecode/api/__init__.py +++ b/rhodecode/api/__init__.py @@ -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