diff --git a/src/allmydata/test/common_web.py b/src/allmydata/test/common_web.py index ce1670341..bd55a9fe9 100644 --- a/src/allmydata/test/common_web.py +++ b/src/allmydata/test/common_web.py @@ -1,3 +1,15 @@ +""" +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 six import ensure_str __all__ = [ diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index d747e581f..b6d4fc2ff 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -99,6 +99,7 @@ PORTED_MODULES = [ "allmydata.test", "allmydata.test.cli", "allmydata.test.cli_node_api", + "allmydata.test.common_web", "allmydata.test.no_network", "allmydata.test.matchers", "allmydata.test.mutable",