Partially Use f string (#10218)

* flynt. trial 1.

* Trial 1.

* Addressed code review.
This commit is contained in:
SangBin Cho
2020-08-20 18:21:16 -07:00
committed by GitHub
parent 07cd815e5a
commit 92664249e8
41 changed files with 195 additions and 238 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ class RayTaskError(RayError):
RayTaskError.__init__(self, function_name, traceback_str,
cause_cls, proctitle, pid, ip)
name = "RayTaskError({})".format(self.cause_cls.__name__)
name = f"RayTaskError({self.cause_cls.__name__})"
cls.__name__ = name
cls.__qualname__ = name
@@ -140,7 +140,7 @@ class RayletError(RayError):
self.client_exc = client_exc
def __str__(self):
return "The Raylet died with this message: {}".format(self.client_exc)
return f"The Raylet died with this message: {self.client_exc}"
class ObjectStoreFullError(RayError):