From 9dd0faf528208b2c14e2f9683f0fee5c42aa9375 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Fri, 6 Nov 2020 11:41:34 -0500 Subject: [PATCH] Ported to Python 3. --- src/allmydata/test/mutable/test_problems.py | 10 ++++++++++ src/allmydata/util/_python3.py | 1 + 2 files changed, 11 insertions(+) diff --git a/src/allmydata/test/mutable/test_problems.py b/src/allmydata/test/mutable/test_problems.py index 02fb62ac4..86a367596 100644 --- a/src/allmydata/test/mutable/test_problems.py +++ b/src/allmydata/test/mutable/test_problems.py @@ -1,4 +1,14 @@ +""" +Ported to Python 3. +""" from __future__ import print_function +from __future__ import absolute_import +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, base64 from twisted.trial import unittest diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index dba0006e8..a794bf991 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -104,6 +104,7 @@ PORTED_TEST_MODULES = [ "allmydata.test.mutable.test_interoperability", "allmydata.test.mutable.test_multiple_encodings", "allmydata.test.mutable.test_multiple_versions", + "allmydata.test.mutable.test_problems", "allmydata.test.test_abbreviate", "allmydata.test.test_base32", "allmydata.test.test_base62",