mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-10 22:43:52 +00:00
should always be bytes
This commit is contained in:
parent
38fb089422
commit
7042442c97
@ -788,7 +788,7 @@ class StorageServer(service.MultiService):
|
||||
report_path = get_corruption_report_path(
|
||||
self.corruption_advisory_dir,
|
||||
now,
|
||||
si_s,
|
||||
si_s.decode("utf8"),
|
||||
shnum,
|
||||
)
|
||||
with open(report_path, "w", encoding="utf-8") as f:
|
||||
@ -953,5 +953,5 @@ def get_corruption_report_path(
|
||||
# windows can't handle colons in the filename
|
||||
return os.path.join(
|
||||
base_dir,
|
||||
("%s--%s-%d" % (now, str(si_s), shnum)).replace(":","")
|
||||
("%s--%s-%d" % (now, si_s, shnum)).replace(":","")
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user