Get rid of Python 2 crud.

This commit is contained in:
Itamar Turner-Trauring 2022-03-14 11:01:20 -04:00
parent 1e108f8445
commit 13fd3b3685

View File

@ -2,27 +2,8 @@
HTTP client that talks to the HTTP storage server.
"""
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:
# fmt: off
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
# fmt: on
from collections import defaultdict
Optional = Set = defaultdict(
lambda: None
) # some garbage to just make this module import
else:
# typing module not available in Python 2, and we only do type checking in
# Python 3 anyway.
from typing import Union, Set, Optional
from treq.testing import StubTreq
from typing import Union, Set, Optional
from treq.testing import StubTreq
from base64 import b64encode