From 185face21f3da34e052fde7c014f850996003f29 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Thu, 18 Mar 2021 11:57:07 -0400 Subject: [PATCH] Port to Python 3. --- src/allmydata/util/_python3.py | 1 + src/allmydata/util/i2p_provider.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 921cfef7c..f9c51eec3 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -110,6 +110,7 @@ PORTED_MODULES = [ "allmydata.util.happinessutil", "allmydata.util.hashutil", "allmydata.util.humanreadable", + "allmydata.util.i2p_provider", "allmydata.util.idlib", "allmydata.util.iputil", "allmydata.util.jsonbytes", diff --git a/src/allmydata/util/i2p_provider.py b/src/allmydata/util/i2p_provider.py index 22575b4ca..071245adf 100644 --- a/src/allmydata/util/i2p_provider.py +++ b/src/allmydata/util/i2p_provider.py @@ -1,5 +1,15 @@ # -*- coding: utf-8 -*- +""" +Ported to Python 3. +""" from __future__ import absolute_import, print_function, with_statement +from __future__ import division +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 os from zope.interface import (