diff --git a/src/allmydata/monitor.py b/src/allmydata/monitor.py index 98c463014..1559a30d9 100644 --- a/src/allmydata/monitor.py +++ b/src/allmydata/monitor.py @@ -1,7 +1,21 @@ +""" +Manage status of long-running operations. + +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 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 zope.interface import Interface, implementer from allmydata.util import observer + class IMonitor(Interface): """I manage status, progress, and cancellation for long-running operations. diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index f8260078f..f05beed88 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -24,6 +24,7 @@ PORTED_MODULES = [ "allmydata.crypto.util", "allmydata.hashtree", "allmydata.interfaces", + "allmydata.monitor", "allmydata.test.common_py3", "allmydata.util._python3", "allmydata.util.abbreviate",