From 555d39bde6deade95add2dd7f2e0c1a1738cac46 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Thu, 11 May 2023 11:59:23 +0200 Subject: [PATCH] api: replaced formatting with fstrings --- rhodecode/api/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rhodecode/api/__init__.py b/rhodecode/api/__init__.py index c46292da..48ecf362 100644 --- 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