From 338ee89e63199f920c797a5c622763da0ea68570 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Fri, 23 Oct 2020 12:52:32 -0400 Subject: [PATCH] Stick with unicode (new str) for file path parts This seems to be the pattern, e.g.: https://github.com/tahoe-lafs/tahoe-lafs/blob/master/src/allmydata/client.py#L229 --- src/allmydata/immutable/offloaded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/immutable/offloaded.py b/src/allmydata/immutable/offloaded.py index d04bf2894..d574b980d 100644 --- a/src/allmydata/immutable/offloaded.py +++ b/src/allmydata/immutable/offloaded.py @@ -670,7 +670,7 @@ class Helper(Referenceable): return (None, uh) def _make_chk_upload_helper(self, storage_index, lp): - si_s = si_b2a(storage_index) + si_s = si_b2a(storage_index).decode('ascii') incoming_file = os.path.join(self._chk_incoming, si_s) encoding_file = os.path.join(self._chk_encoding, si_s) uh = self.chk_upload(