From 40bd64cc079c54d99c19b90a9475cd6aeab6cf49 Mon Sep 17 00:00:00 2001 From: Kevin Hunter Kesling Date: Tue, 20 Feb 2024 21:54:56 -0500 Subject: [PATCH] No sense in formatting the already-formatted --- parsl/jobs/states.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parsl/jobs/states.py b/parsl/jobs/states.py index cf2d372163..a0d4ca504c 100644 --- a/parsl/jobs/states.py +++ b/parsl/jobs/states.py @@ -47,7 +47,7 @@ class JobState(IntEnum): """ def __str__(self) -> str: - return self.__class__.__name__ + "." + self.name + return f"{self.__class__.__name__}.{self.name}" TERMINAL_STATES = [JobState.CANCELLED, JobState.COMPLETED, JobState.FAILED, @@ -84,16 +84,16 @@ def status_name(self) -> str: def __repr__(self) -> str: if self.message is not None: - extra = f"state={self.state} message={self.message}".format(self.state, self.message) + extra = f"state={self.state} message={self.message}" else: - extra = f"state={self.state}".format(self.state) + extra = f"state={self.state}" return f"<{type(self).__module__}.{type(self).__qualname__} object at {hex(id(self))}, {extra}>" def __str__(self) -> str: if self.message is not None: - return "{} ({})".format(self.state, self.message) + return f"{self.state} ({self.message})" else: - return "{}".format(self.state) + return f"{self.state}" @property def stdout(self) -> Optional[str]: