From 6e12cce1e49ac90f2925ed53953c24c8751d908e Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Thu, 17 Dec 2020 09:55:35 -0500 Subject: [PATCH] Port to Python 3. --- src/allmydata/test/web/test_status.py | 10 ++++++++++ src/allmydata/util/_python3.py | 1 + 2 files changed, 11 insertions(+) diff --git a/src/allmydata/test/web/test_status.py b/src/allmydata/test/web/test_status.py index d2ab5a606..414925446 100644 --- a/src/allmydata/test/web/test_status.py +++ b/src/allmydata/test/web/test_status.py @@ -1,6 +1,16 @@ """ Tests for ```allmydata.web.status```. + +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 bs4 import BeautifulSoup from twisted.web.template import flattenString diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 803835fae..af771cd5a 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -181,4 +181,5 @@ PORTED_TEST_MODULES = [ "allmydata.test.test_util", "allmydata.test.web.test_common", "allmydata.test.web.test_util", + "allmydata.test.web.test_status", ]