From 5a2728fa050ae58977c28624d4a954d70a21c174 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Wed, 23 Sep 2020 15:56:09 -0400 Subject: [PATCH] Finish port to Python 3. --- src/allmydata/test/test_filenode.py | 11 +++++++++++ src/allmydata/util/_python3.py | 1 + 2 files changed, 12 insertions(+) diff --git a/src/allmydata/test/test_filenode.py b/src/allmydata/test/test_filenode.py index 3d14b2091..a8f0e2431 100644 --- a/src/allmydata/test/test_filenode.py +++ b/src/allmydata/test/test_filenode.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 from twisted.trial import unittest from allmydata import uri, client diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index d16f05a9a..4a88875b1 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -87,6 +87,7 @@ PORTED_TEST_MODULES = [ "allmydata.test.test_dictutil", "allmydata.test.test_encode", "allmydata.test.test_encodingutil", + "allmydata.test.test_filenode", "allmydata.test.test_happiness", "allmydata.test.test_hashtree", "allmydata.test.test_hashutil",