format with black

This commit is contained in:
AppleTheGolden 2025-10-11 19:25:01 +02:00
parent 885a5a14f4
commit b3bcd6821c
No known key found for this signature in database
GPG key ID: F6AC8A62154C42AA

View file

@ -1560,21 +1560,22 @@ class HttpCli(object):
self.send_headers(length=zi.file_size, mime=guess_mime(inner_path))
sendfile_py(
self.log, 0, zi.file_size,
fi,
self.s,
self.args.s_wr_sz,
self.args.s_wr_slp,
not self.args.no_poll,
{},
"",
)
self.log,
0,
zi.file_size,
fi,
self.s,
self.args.s_wr_sz,
self.args.s_wr_slp,
not self.args.no_poll,
{},
"",
)
except KeyError:
raise Pebkac(404, "no such file in archive")
except (zipfile.BadZipfile, RuntimeError):
raise Pebkac(404, "requested file is not a valid zip file")
def handle_propfind(self) -> bool:
if self.do_log:
self.log("PFIND %s @%s" % (self.req, self.uname))