From 61fdea9043c7e5fba6cc80c62a9ea957c9f305d7 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Wed, 2 Jun 2021 10:16:17 -0400 Subject: [PATCH] Port to Python 3. --- src/allmydata/scripts/tahoe_invite.py | 10 ++++++++++ src/allmydata/util/_python3.py | 1 + 2 files changed, 11 insertions(+) diff --git a/src/allmydata/scripts/tahoe_invite.py b/src/allmydata/scripts/tahoe_invite.py index 5be0fa871..09d4cbd59 100644 --- a/src/allmydata/scripts/tahoe_invite.py +++ b/src/allmydata/scripts/tahoe_invite.py @@ -1,5 +1,15 @@ +""" +Ported to Python 3. +""" +from __future__ import unicode_literals +from __future__ import absolute_import +from __future__ import division from __future__ import print_function +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 + try: from allmydata.scripts.types_ import SubCommands except ImportError: diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 17bcf0107..42a050b0a 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -107,6 +107,7 @@ PORTED_MODULES = [ "allmydata.scripts.tahoe_check", "allmydata.scripts.tahoe_cp", "allmydata.scripts.tahoe_get", + "allmydata.scripts.tahoe_invite", "allmydata.scripts.types_", "allmydata.stats", "allmydata.storage_client",