More progress on Python 3, unbreak Python 2.

This commit is contained in:
Itamar Turner-Trauring
2020-12-10 10:52:07 -05:00
parent fb621f4388
commit 36bf9224e6
4 changed files with 15 additions and 14 deletions

View File

@ -904,10 +904,6 @@ class _Client(node.Node, pollmixin.PollMixin):
if helper_furl in ("None", ""):
helper_furl = None
# FURLs need to be bytes:
if helper_furl is not None:
helper_furl = helper_furl.encode("utf-8")
DEP = self.encoding_params
DEP["k"] = int(self.config.get_config("client", "shares.needed", DEP["k"]))
DEP["n"] = int(self.config.get_config("client", "shares.total", DEP["n"]))