initial changes to use f strings
This commit is contained in:
parent
da946f1f56
commit
c9326b6a97
8 changed files with 70 additions and 72 deletions
|
@ -10,11 +10,9 @@ class CoreCommandError(subprocess.CalledProcessError):
|
|||
"""
|
||||
|
||||
def __str__(self):
|
||||
return "Command(%s), Status(%s):\nstdout: %s\nstderr: %s" % (
|
||||
self.cmd,
|
||||
self.returncode,
|
||||
self.output,
|
||||
self.stderr,
|
||||
return (
|
||||
f"Command({self.cmd}), Status({self.returncode}):\n"
|
||||
f"stdout: {self.output}\nstderr: {self.stderr}"
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue