Port to Python 3.

This commit is contained in:
Itamar Turner-Trauring 2020-08-07 13:28:14 -04:00
parent b82e2ad1c5
commit 0e034e06b7
2 changed files with 15 additions and 0 deletions

View File

@ -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.

View File

@ -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",