PROTON-2590: [Python] Remove use of "from __future__ import ..."
authorAndrew Stitcher <astitcher@apache.org>
Tue, 9 Aug 2022 14:20:23 +0000 (10:20 -0400)
committerAndrew Stitcher <astitcher@apache.org>
Tue, 9 Aug 2022 14:20:23 +0000 (10:20 -0400)
commita4375a8351c3435bd5025bb2481307efe97dc99e
tree150fe30cb711551c579e0563e8e77ac9d0ef6613
parent401606fb8eef6da92a626aa7a729efca74a7c0b4
PROTON-2590: [Python] Remove use of "from __future__ import ..."

Every one of these future imports that we use is already the default for
Python 3 so we no longer need any of them.

- Also a couple of other small changes where we are checking for things
  that are different with Python 2.
38 files changed:
c/src/encodings.h.py
c/src/protocol.h.py
c/tests/fdlimit.py
python/proton/__init__.py
python/proton/_exceptions.py
python/proton/_io.py
python/proton/_message.py
python/proton/_url.py
python/proton/handlers.py
python/proton/reactor.py
python/proton/tracing.py
python/proton/utils.py
python/tests/integration/broker_PROTON_2116_blocking_connection_object_leak.py
python/tests/integration/test_PROTON_1709_application_event_object_leak.py
python/tests/integration/test_PROTON_1800_syncrequestresponse_fd_leak.py
python/tests/integration/test_PROTON_2111_container_ssl_ssldomain_object_leak.py
python/tests/integration/test_PROTON_2116_blocking_connection_object_leak.py
python/tests/integration/test_PROTON_2121_blocking_connection_fd_leak.py
python/tests/proton_tests/__init__.py
python/tests/proton_tests/codec.py
python/tests/proton_tests/common.py
python/tests/proton_tests/connect.py
python/tests/proton_tests/engine.py
python/tests/proton_tests/handler.py
python/tests/proton_tests/interop.py
python/tests/proton_tests/message.py
python/tests/proton_tests/reactor.py
python/tests/proton_tests/sasl.py
python/tests/proton_tests/soak.py
python/tests/proton_tests/ssl.py
python/tests/proton_tests/transport.py
python/tests/proton_tests/url.py
python/tests/proton_tests/utils.py
scripts/soak-check
tools/python/mllib/__init__.py
tools/python/mllib/dom.py
tools/python/mllib/parsers.py
tools/python/mllib/transforms.py