Port to Python 3.

This commit is contained in:
Itamar Turner-Trauring 2020-07-29 14:49:48 -04:00
parent 0a1e365ed1
commit 5e308260b1
3 changed files with 11 additions and 0 deletions

0
newsfragments/3361.minor Normal file
View File

View File

@ -22,6 +22,7 @@ PORTED_MODULES = [
"allmydata.util.base62",
"allmydata.util.deferredutil",
"allmydata.util.dictutil",
"allmydata.util.gcutil",
"allmydata.util.hashutil",
"allmydata.util.humanreadable",
"allmydata.util.iputil",

View File

@ -7,7 +7,17 @@ Helpers for managing garbage collection.
a result. Register allocation and release of *bare* file descriptors with
this object (file objects, socket objects, etc, have their own integration
with the garbage collector and don't need to bother with this).
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, int, list, object, range, str, max, min # noqa: F401
__all__ = [
"fileDescriptorResource",