all: Update Python formatting to ruff-format.

This updates a small number of files that change with ruff-format's (vs
black's) rules.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared
2023-10-21 17:40:27 +11:00
committed by Damien George
parent 303ccca7c6
commit bbd8760bd9
9 changed files with 160 additions and 131 deletions

View File

@@ -331,7 +331,7 @@ class SerialTransport(Transport):
def fs_stat(self, src):
try:
self.exec("import os")
return os.stat_result(self.eval("os.stat(%s)" % (("'%s'" % src)), parse=True))
return os.stat_result(self.eval("os.stat(%s)" % ("'%s'" % src), parse=True))
except TransportError as e:
reraise_filesystem_error(e, src)