Finish porting to Python 3.

This commit is contained in:
Itamar Turner-Trauring 2020-08-19 13:25:11 -04:00
parent 35ac5a62e7
commit 8279be38c1
4 changed files with 23 additions and 1 deletions

0
newsfragments/3386.minor Normal file
View File

View File

@ -1,4 +1,19 @@
from future.utils import native_str, PY3
"""
Crawl the storage server shares.
Ported to Python 3.
"""
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from future.utils import PY2, PY3
if PY2:
# We don't import bytes, object, dict, and list just in case they're used,
# so as not to create brittle pickles with random magic objects.
from builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, range, str, max, min # noqa: F401
import os, time, struct
try:

View File

@ -1,3 +1,9 @@
"""
Tests for allmydata.storage.crawler.
Ported to Python 3.
"""
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

View File

@ -32,6 +32,7 @@ PORTED_MODULES = [
"allmydata.crypto.util",
"allmydata.hashtree",
"allmydata.immutable.happiness_upload",
"allmydata.storage.crawler",
"allmydata.test.common_py3",
"allmydata.util._python3",
"allmydata.util.abbreviate",