From 206f25d87eff0d06281ed6113a23994ff3e74168 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 29 Sep 2020 13:50:59 -0400 Subject: [PATCH] Port to Python 3. --- src/allmydata/immutable/downloader/share.py | 11 +++++++++++ src/allmydata/util/_python3.py | 1 + 2 files changed, 12 insertions(+) diff --git a/src/allmydata/immutable/downloader/share.py b/src/allmydata/immutable/downloader/share.py index 15f55d409..f279018ba 100644 --- a/src/allmydata/immutable/downloader/share.py +++ b/src/allmydata/immutable/downloader/share.py @@ -1,3 +1,14 @@ +""" +Ported to Python 3. +""" +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function +from __future__ import unicode_literals + +from future.utils import PY2 +if PY2: + from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401 import struct import time diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index ce9cf353d..c93c27b32 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -33,6 +33,7 @@ PORTED_MODULES = [ "allmydata.crypto.util", "allmydata.hashtree", "allmydata.immutable.happiness_upload", + "allmydata.immutable.downloader.share", "allmydata.interfaces", "allmydata.introducer.interfaces", "allmydata.monitor",