ExecContext: Fix output handling #9
1 changed files with 1 additions and 1 deletions
lib.Result.__repr__() Fix missing f-qualifier
__repr__() tries to format a variable in an f-string without "f". Fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
commit
812ddaa1b0
|
|
@ -46,7 +46,7 @@ class Result:
|
||||||
else:
|
else:
|
||||||
ret = self.stdout_str[:20]
|
ret = self.stdout_str[:20]
|
||||||
if quote:
|
if quote:
|
||||||
ret = '"{ret}"'
|
ret = f'"{ret}"'
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue