##// END OF EJS Templates
api: replaced formatting with fstrings
super-admin -
r5016:5218c510 default
parent child Browse files
Show More
@@ -392,7 +392,7 b' class RoutePredicate(object):'
392 self.val = val
392 self.val = val
393
393
394 def text(self):
394 def text(self):
395 return 'jsonrpc route = %s' % self.val
395 return f'jsonrpc route = {self.val}'
396
396
397 phash = text
397 phash = text
398
398
@@ -412,7 +412,7 b' class NotFoundPredicate(object):'
412 self.methods = config.registry.jsonrpc_methods
412 self.methods = config.registry.jsonrpc_methods
413
413
414 def text(self):
414 def text(self):
415 return 'jsonrpc method not found = {}.'.format(self.val)
415 return f'jsonrpc method not found = {self.val}'
416
416
417 phash = text
417 phash = text
418
418
@@ -425,7 +425,7 b' class MethodPredicate(object):'
425 self.method = val
425 self.method = val
426
426
427 def text(self):
427 def text(self):
428 return 'jsonrpc method = %s' % self.method
428 return f'jsonrpc method = {self.method}'
429
429
430 phash = text
430 phash = text
431
431
General Comments 0
You need to be logged in to leave comments. Login now