Port to Python 3.

This commit is contained in:
Itamar Turner-Trauring 2020-09-11 15:02:42 -04:00
parent 6f5c32c461
commit 7de84e32a3
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,15 @@
from future.utils import bytes_to_native_str
"""
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, bytes_to_native_str
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
import os, stat, struct, time

View File

@ -37,6 +37,7 @@ PORTED_MODULES = [
"allmydata.monitor",
"allmydata.storage.crawler",
"allmydata.storage.expirer",
"allmydata.storage.immutable",
"allmydata.test.common_py3",
"allmydata.uri",
"allmydata.util._python3",