From 1c2c1abcd3dd9db9f35b04c6cde628281df4a75a Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Tue, 30 Jul 2024 22:46:08 +0200 Subject: [PATCH] remove Python2 crumbs --- vertica_python/__init__.py | 2 +- vertica_python/compat.py | 4 ---- vertica_python/datatypes.py | 2 +- vertica_python/errors.py | 2 +- vertica_python/os_utils.py | 2 +- vertica_python/tests/common/base.py | 2 +- vertica_python/tests/integration_tests/base.py | 2 +- vertica_python/tests/integration_tests/test_authentication.py | 2 +- vertica_python/tests/integration_tests/test_cancel.py | 2 +- vertica_python/tests/integration_tests/test_column.py | 2 +- vertica_python/tests/integration_tests/test_connection.py | 2 +- vertica_python/tests/integration_tests/test_cursor.py | 2 +- vertica_python/tests/integration_tests/test_datatypes.py | 2 +- vertica_python/tests/integration_tests/test_dates.py | 2 +- vertica_python/tests/integration_tests/test_errors.py | 2 +- vertica_python/tests/integration_tests/test_loadbalance.py | 2 +- vertica_python/tests/integration_tests/test_timezones.py | 2 +- vertica_python/tests/integration_tests/test_tls.py | 2 +- .../tests/integration_tests/test_transfer_format.py | 2 +- vertica_python/tests/integration_tests/test_unicode.py | 2 +- vertica_python/tests/unit_tests/base.py | 2 +- vertica_python/tests/unit_tests/test_errors.py | 2 +- vertica_python/tests/unit_tests/test_logging.py | 2 +- vertica_python/tests/unit_tests/test_notice.py | 2 +- vertica_python/tests/unit_tests/test_parsedsn.py | 2 +- vertica_python/tests/unit_tests/test_sql_literal.py | 2 +- vertica_python/tests/unit_tests/test_timestamps.py | 2 +- vertica_python/vertica/column.py | 2 +- vertica_python/vertica/connection.py | 2 +- vertica_python/vertica/cursor.py | 2 +- vertica_python/vertica/deserializer.py | 2 +- vertica_python/vertica/log.py | 2 +- vertica_python/vertica/messages/__init__.py | 2 +- vertica_python/vertica/messages/backend_messages/__init__.py | 2 +- .../vertica/messages/backend_messages/authentication.py | 2 +- .../vertica/messages/backend_messages/backend_key_data.py | 2 +- .../vertica/messages/backend_messages/bind_complete.py | 2 +- .../vertica/messages/backend_messages/close_complete.py | 2 +- .../vertica/messages/backend_messages/command_complete.py | 2 +- .../vertica/messages/backend_messages/command_description.py | 2 +- .../vertica/messages/backend_messages/copy_done_response.py | 2 +- .../vertica/messages/backend_messages/copy_in_response.py | 2 +- vertica_python/vertica/messages/backend_messages/data_row.py | 2 +- .../vertica/messages/backend_messages/empty_query_response.py | 2 +- .../messages/backend_messages/end_of_batch_response.py | 2 +- .../vertica/messages/backend_messages/error_response.py | 2 +- .../messages/backend_messages/load_balance_response.py | 2 +- vertica_python/vertica/messages/backend_messages/load_file.py | 2 +- vertica_python/vertica/messages/backend_messages/no_data.py | 2 +- .../vertica/messages/backend_messages/notice_response.py | 2 +- .../messages/backend_messages/parameter_description.py | 2 +- .../vertica/messages/backend_messages/parameter_status.py | 2 +- .../vertica/messages/backend_messages/parse_complete.py | 2 +- .../vertica/messages/backend_messages/portal_suspended.py | 2 +- .../vertica/messages/backend_messages/ready_for_query.py | 2 +- .../vertica/messages/backend_messages/row_description.py | 2 +- vertica_python/vertica/messages/backend_messages/unknown.py | 2 +- .../vertica/messages/backend_messages/verify_files.py | 2 +- .../vertica/messages/backend_messages/write_file.py | 2 +- vertica_python/vertica/messages/frontend_messages/__init__.py | 2 +- vertica_python/vertica/messages/frontend_messages/bind.py | 2 +- .../vertica/messages/frontend_messages/cancel_request.py | 2 +- vertica_python/vertica/messages/frontend_messages/close.py | 2 +- .../vertica/messages/frontend_messages/copy_data.py | 2 +- .../vertica/messages/frontend_messages/copy_done.py | 2 +- .../vertica/messages/frontend_messages/copy_error.py | 2 +- .../vertica/messages/frontend_messages/copy_fail.py | 2 +- .../vertica/messages/frontend_messages/crypt_windows.py | 2 +- vertica_python/vertica/messages/frontend_messages/describe.py | 2 +- .../messages/frontend_messages/end_of_batch_request.py | 2 +- vertica_python/vertica/messages/frontend_messages/execute.py | 2 +- vertica_python/vertica/messages/frontend_messages/flush.py | 2 +- .../messages/frontend_messages/load_balance_request.py | 2 +- vertica_python/vertica/messages/frontend_messages/parse.py | 2 +- vertica_python/vertica/messages/frontend_messages/password.py | 2 +- vertica_python/vertica/messages/frontend_messages/query.py | 2 +- .../vertica/messages/frontend_messages/ssl_request.py | 2 +- vertica_python/vertica/messages/frontend_messages/startup.py | 2 +- vertica_python/vertica/messages/frontend_messages/sync.py | 2 +- .../vertica/messages/frontend_messages/terminate.py | 2 +- .../vertica/messages/frontend_messages/verified_files.py | 2 +- vertica_python/vertica/messages/message.py | 2 +- vertica_python/vertica/mixins/__init__.py | 2 +- vertica_python/vertica/mixins/notice_response_attr.py | 2 +- vertica_python/vertica/tlsmode.py | 2 +- 85 files changed, 84 insertions(+), 88 deletions(-) diff --git a/vertica_python/__init__.py b/vertica_python/__init__.py index 53584608..279af46b 100644 --- a/vertica_python/__init__.py +++ b/vertica_python/__init__.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .vertica.connection import Connection, connect, parse_dsn diff --git a/vertica_python/compat.py b/vertica_python/compat.py index 21db3d17..2fe14f5a 100644 --- a/vertica_python/compat.py +++ b/vertica_python/compat.py @@ -63,10 +63,6 @@ * `real_types` """ -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - import six as _six diff --git a/vertica_python/datatypes.py b/vertica_python/datatypes.py index fd5af744..dfd51042 100644 --- a/vertica_python/datatypes.py +++ b/vertica_python/datatypes.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from datetime import date, datetime, time, timezone from typing import TYPE_CHECKING diff --git a/vertica_python/errors.py b/vertica_python/errors.py index ad285979..d4790c76 100644 --- a/vertica_python/errors.py +++ b/vertica_python/errors.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import re diff --git a/vertica_python/os_utils.py b/vertica_python/os_utils.py index b266d4f4..62b64262 100644 --- a/vertica_python/os_utils.py +++ b/vertica_python/os_utils.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import errno import os diff --git a/vertica_python/tests/common/base.py b/vertica_python/tests/common/base.py index d4210d7f..b0e28197 100644 --- a/vertica_python/tests/common/base.py +++ b/vertica_python/tests/common/base.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import os import sys diff --git a/vertica_python/tests/integration_tests/base.py b/vertica_python/tests/integration_tests/base.py index 10101445..92a7f77b 100644 --- a/vertica_python/tests/integration_tests/base.py +++ b/vertica_python/tests/integration_tests/base.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import pytest diff --git a/vertica_python/tests/integration_tests/test_authentication.py b/vertica_python/tests/integration_tests/test_authentication.py index 306cfbd9..6080480c 100644 --- a/vertica_python/tests/integration_tests/test_authentication.py +++ b/vertica_python/tests/integration_tests/test_authentication.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonIntegrationTestCase diff --git a/vertica_python/tests/integration_tests/test_cancel.py b/vertica_python/tests/integration_tests/test_cancel.py index 215a67a0..1007fc5d 100644 --- a/vertica_python/tests/integration_tests/test_cancel.py +++ b/vertica_python/tests/integration_tests/test_cancel.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from multiprocessing import Process import pytest diff --git a/vertica_python/tests/integration_tests/test_column.py b/vertica_python/tests/integration_tests/test_column.py index 537e870b..d5977b5e 100644 --- a/vertica_python/tests/integration_tests/test_column.py +++ b/vertica_python/tests/integration_tests/test_column.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonIntegrationTestCase diff --git a/vertica_python/tests/integration_tests/test_connection.py b/vertica_python/tests/integration_tests/test_connection.py index f6c65a15..5fe74974 100644 --- a/vertica_python/tests/integration_tests/test_connection.py +++ b/vertica_python/tests/integration_tests/test_connection.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import getpass import socket diff --git a/vertica_python/tests/integration_tests/test_cursor.py b/vertica_python/tests/integration_tests/test_cursor.py index cf0e5c1b..5dd6f2ea 100644 --- a/vertica_python/tests/integration_tests/test_cursor.py +++ b/vertica_python/tests/integration_tests/test_cursor.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from datetime import date, datetime, time from dateutil.relativedelta import relativedelta diff --git a/vertica_python/tests/integration_tests/test_datatypes.py b/vertica_python/tests/integration_tests/test_datatypes.py index e7b692cf..d23ac893 100644 --- a/vertica_python/tests/integration_tests/test_datatypes.py +++ b/vertica_python/tests/integration_tests/test_datatypes.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from datetime import date, datetime, time from dateutil.relativedelta import relativedelta diff --git a/vertica_python/tests/integration_tests/test_dates.py b/vertica_python/tests/integration_tests/test_dates.py index abba9ef2..473a1916 100644 --- a/vertica_python/tests/integration_tests/test_dates.py +++ b/vertica_python/tests/integration_tests/test_dates.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from collections import namedtuple from datetime import date diff --git a/vertica_python/tests/integration_tests/test_errors.py b/vertica_python/tests/integration_tests/test_errors.py index 1f6a83ca..6739ecc8 100644 --- a/vertica_python/tests/integration_tests/test_errors.py +++ b/vertica_python/tests/integration_tests/test_errors.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonIntegrationTestCase diff --git a/vertica_python/tests/integration_tests/test_loadbalance.py b/vertica_python/tests/integration_tests/test_loadbalance.py index 226343fc..2e73c450 100644 --- a/vertica_python/tests/integration_tests/test_loadbalance.py +++ b/vertica_python/tests/integration_tests/test_loadbalance.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonIntegrationTestCase diff --git a/vertica_python/tests/integration_tests/test_timezones.py b/vertica_python/tests/integration_tests/test_timezones.py index d1ee2912..a27ebcc3 100644 --- a/vertica_python/tests/integration_tests/test_timezones.py +++ b/vertica_python/tests/integration_tests/test_timezones.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from collections import namedtuple from datetime import datetime diff --git a/vertica_python/tests/integration_tests/test_tls.py b/vertica_python/tests/integration_tests/test_tls.py index 62e120b0..f975ae52 100644 --- a/vertica_python/tests/integration_tests/test_tls.py +++ b/vertica_python/tests/integration_tests/test_tls.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import os import socket diff --git a/vertica_python/tests/integration_tests/test_transfer_format.py b/vertica_python/tests/integration_tests/test_transfer_format.py index afa14ceb..30403683 100644 --- a/vertica_python/tests/integration_tests/test_transfer_format.py +++ b/vertica_python/tests/integration_tests/test_transfer_format.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonIntegrationTestCase diff --git a/vertica_python/tests/integration_tests/test_unicode.py b/vertica_python/tests/integration_tests/test_unicode.py index 06b99337..1d44df1a 100644 --- a/vertica_python/tests/integration_tests/test_unicode.py +++ b/vertica_python/tests/integration_tests/test_unicode.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonIntegrationTestCase diff --git a/vertica_python/tests/unit_tests/base.py b/vertica_python/tests/unit_tests/base.py index 73ad2cab..e29f9c60 100644 --- a/vertica_python/tests/unit_tests/base.py +++ b/vertica_python/tests/unit_tests/base.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import pytest from ..common.base import VerticaPythonTestCase diff --git a/vertica_python/tests/unit_tests/test_errors.py b/vertica_python/tests/unit_tests/test_errors.py index 35064c82..3afd39e0 100644 --- a/vertica_python/tests/unit_tests/test_errors.py +++ b/vertica_python/tests/unit_tests/test_errors.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonUnitTestCase from ...errors import VerticaSyntaxError diff --git a/vertica_python/tests/unit_tests/test_logging.py b/vertica_python/tests/unit_tests/test_logging.py index ffe923f0..7f901521 100644 --- a/vertica_python/tests/unit_tests/test_logging.py +++ b/vertica_python/tests/unit_tests/test_logging.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import logging import os diff --git a/vertica_python/tests/unit_tests/test_notice.py b/vertica_python/tests/unit_tests/test_notice.py index f1f61dd1..a2dde29c 100644 --- a/vertica_python/tests/unit_tests/test_notice.py +++ b/vertica_python/tests/unit_tests/test_notice.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import mock diff --git a/vertica_python/tests/unit_tests/test_parsedsn.py b/vertica_python/tests/unit_tests/test_parsedsn.py index 6a13256d..a7117db4 100644 --- a/vertica_python/tests/unit_tests/test_parsedsn.py +++ b/vertica_python/tests/unit_tests/test_parsedsn.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .base import VerticaPythonUnitTestCase from ...vertica.connection import parse_dsn diff --git a/vertica_python/tests/unit_tests/test_sql_literal.py b/vertica_python/tests/unit_tests/test_sql_literal.py index 90dfbac3..ca597e09 100644 --- a/vertica_python/tests/unit_tests/test_sql_literal.py +++ b/vertica_python/tests/unit_tests/test_sql_literal.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from collections import namedtuple from decimal import Decimal diff --git a/vertica_python/tests/unit_tests/test_timestamps.py b/vertica_python/tests/unit_tests/test_timestamps.py index b6389e2d..b0eb895c 100644 --- a/vertica_python/tests/unit_tests/test_timestamps.py +++ b/vertica_python/tests/unit_tests/test_timestamps.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from collections import namedtuple from datetime import datetime diff --git a/vertica_python/vertica/column.py b/vertica_python/vertica/column.py index 29c7507a..ac8691b8 100644 --- a/vertica_python/vertica/column.py +++ b/vertica_python/vertica/column.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from typing import TYPE_CHECKING, NamedTuple if TYPE_CHECKING: diff --git a/vertica_python/vertica/connection.py b/vertica_python/vertica/connection.py index 92baf48c..b3aa4b42 100644 --- a/vertica_python/vertica/connection.py +++ b/vertica_python/vertica/connection.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import base64 import getpass diff --git a/vertica_python/vertica/cursor.py b/vertica_python/vertica/cursor.py index dd01b99b..705334d5 100644 --- a/vertica_python/vertica/cursor.py +++ b/vertica_python/vertica/cursor.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import datetime import glob diff --git a/vertica_python/vertica/deserializer.py b/vertica_python/vertica/deserializer.py index 3ada30ac..d44d3887 100644 --- a/vertica_python/vertica/deserializer.py +++ b/vertica_python/vertica/deserializer.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import json import re diff --git a/vertica_python/vertica/log.py b/vertica_python/vertica/log.py index 7bb0fcd5..1f2ad468 100644 --- a/vertica_python/vertica/log.py +++ b/vertica_python/vertica/log.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import logging from typing import TYPE_CHECKING diff --git a/vertica_python/vertica/messages/__init__.py b/vertica_python/vertica/messages/__init__.py index 991a8374..873e7b39 100644 --- a/vertica_python/vertica/messages/__init__.py +++ b/vertica_python/vertica/messages/__init__.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..messages import backend_messages from ..messages.backend_messages import * diff --git a/vertica_python/vertica/messages/backend_messages/__init__.py b/vertica_python/vertica/messages/backend_messages/__init__.py index 2081a737..890cda07 100644 --- a/vertica_python/vertica/messages/backend_messages/__init__.py +++ b/vertica_python/vertica/messages/backend_messages/__init__.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .authentication import Authentication from .backend_key_data import BackendKeyData diff --git a/vertica_python/vertica/messages/backend_messages/authentication.py b/vertica_python/vertica/messages/backend_messages/authentication.py index fe8cb3a8..017c91b8 100644 --- a/vertica_python/vertica/messages/backend_messages/authentication.py +++ b/vertica_python/vertica/messages/backend_messages/authentication.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/backend_key_data.py b/vertica_python/vertica/messages/backend_messages/backend_key_data.py index 79e9d6d5..1392970d 100644 --- a/vertica_python/vertica/messages/backend_messages/backend_key_data.py +++ b/vertica_python/vertica/messages/backend_messages/backend_key_data.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/bind_complete.py b/vertica_python/vertica/messages/backend_messages/bind_complete.py index e7d6d257..4519e5a6 100644 --- a/vertica_python/vertica/messages/backend_messages/bind_complete.py +++ b/vertica_python/vertica/messages/backend_messages/bind_complete.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/close_complete.py b/vertica_python/vertica/messages/backend_messages/close_complete.py index aab92ce6..d05f2621 100644 --- a/vertica_python/vertica/messages/backend_messages/close_complete.py +++ b/vertica_python/vertica/messages/backend_messages/close_complete.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/command_complete.py b/vertica_python/vertica/messages/backend_messages/command_complete.py index 34bec210..64bbf68d 100644 --- a/vertica_python/vertica/messages/backend_messages/command_complete.py +++ b/vertica_python/vertica/messages/backend_messages/command_complete.py @@ -40,7 +40,7 @@ string is the name of the command that was run. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import re import warnings diff --git a/vertica_python/vertica/messages/backend_messages/command_description.py b/vertica_python/vertica/messages/backend_messages/command_description.py index 2a053200..32655ad1 100644 --- a/vertica_python/vertica/messages/backend_messages/command_description.py +++ b/vertica_python/vertica/messages/backend_messages/command_description.py @@ -43,7 +43,7 @@ batches of parameters. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/copy_done_response.py b/vertica_python/vertica/messages/backend_messages/copy_done_response.py index d9841035..194e9241 100644 --- a/vertica_python/vertica/messages/backend_messages/copy_done_response.py +++ b/vertica_python/vertica/messages/backend_messages/copy_done_response.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/copy_in_response.py b/vertica_python/vertica/messages/backend_messages/copy_in_response.py index 9289d100..aebea4de 100644 --- a/vertica_python/vertica/messages/backend_messages/copy_in_response.py +++ b/vertica_python/vertica/messages/backend_messages/copy_in_response.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/data_row.py b/vertica_python/vertica/messages/backend_messages/data_row.py index 9e8acca2..3d383ae5 100644 --- a/vertica_python/vertica/messages/backend_messages/data_row.py +++ b/vertica_python/vertica/messages/backend_messages/data_row.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack_from diff --git a/vertica_python/vertica/messages/backend_messages/empty_query_response.py b/vertica_python/vertica/messages/backend_messages/empty_query_response.py index 16b09a28..16a3f3b3 100644 --- a/vertica_python/vertica/messages/backend_messages/empty_query_response.py +++ b/vertica_python/vertica/messages/backend_messages/empty_query_response.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/end_of_batch_response.py b/vertica_python/vertica/messages/backend_messages/end_of_batch_response.py index 3d146bbc..f697ca87 100644 --- a/vertica_python/vertica/messages/backend_messages/end_of_batch_response.py +++ b/vertica_python/vertica/messages/backend_messages/end_of_batch_response.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/error_response.py b/vertica_python/vertica/messages/backend_messages/error_response.py index 85606350..e203f576 100644 --- a/vertica_python/vertica/messages/backend_messages/error_response.py +++ b/vertica_python/vertica/messages/backend_messages/error_response.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage from vertica_python.vertica.messages.backend_messages.notice_response import NoticeResponse diff --git a/vertica_python/vertica/messages/backend_messages/load_balance_response.py b/vertica_python/vertica/messages/backend_messages/load_balance_response.py index c10f75b8..1a63ee35 100644 --- a/vertica_python/vertica/messages/backend_messages/load_balance_response.py +++ b/vertica_python/vertica/messages/backend_messages/load_balance_response.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/load_file.py b/vertica_python/vertica/messages/backend_messages/load_file.py index 3488cd52..850fdefc 100644 --- a/vertica_python/vertica/messages/backend_messages/load_file.py +++ b/vertica_python/vertica/messages/backend_messages/load_file.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/no_data.py b/vertica_python/vertica/messages/backend_messages/no_data.py index 5ab8394e..5dda56e7 100644 --- a/vertica_python/vertica/messages/backend_messages/no_data.py +++ b/vertica_python/vertica/messages/backend_messages/no_data.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/notice_response.py b/vertica_python/vertica/messages/backend_messages/notice_response.py index db5c7578..14cf59f3 100644 --- a/vertica_python/vertica/messages/backend_messages/notice_response.py +++ b/vertica_python/vertica/messages/backend_messages/notice_response.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack_from diff --git a/vertica_python/vertica/messages/backend_messages/parameter_description.py b/vertica_python/vertica/messages/backend_messages/parameter_description.py index 744ef6a9..2988faa3 100644 --- a/vertica_python/vertica/messages/backend_messages/parameter_description.py +++ b/vertica_python/vertica/messages/backend_messages/parameter_description.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack, unpack_from, calcsize diff --git a/vertica_python/vertica/messages/backend_messages/parameter_status.py b/vertica_python/vertica/messages/backend_messages/parameter_status.py index ef6753d8..9ebd7a55 100644 --- a/vertica_python/vertica/messages/backend_messages/parameter_status.py +++ b/vertica_python/vertica/messages/backend_messages/parameter_status.py @@ -50,7 +50,7 @@ about. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/parse_complete.py b/vertica_python/vertica/messages/backend_messages/parse_complete.py index e673518e..269d5060 100644 --- a/vertica_python/vertica/messages/backend_messages/parse_complete.py +++ b/vertica_python/vertica/messages/backend_messages/parse_complete.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/portal_suspended.py b/vertica_python/vertica/messages/backend_messages/portal_suspended.py index 76724ad7..0bfef77a 100644 --- a/vertica_python/vertica/messages/backend_messages/portal_suspended.py +++ b/vertica_python/vertica/messages/backend_messages/portal_suspended.py @@ -47,7 +47,7 @@ intended by Postgres. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/ready_for_query.py b/vertica_python/vertica/messages/backend_messages/ready_for_query.py index bf05aa4d..80bcab68 100644 --- a/vertica_python/vertica/messages/backend_messages/ready_for_query.py +++ b/vertica_python/vertica/messages/backend_messages/ready_for_query.py @@ -41,7 +41,7 @@ command cycle. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack diff --git a/vertica_python/vertica/messages/backend_messages/row_description.py b/vertica_python/vertica/messages/backend_messages/row_description.py index b05669a9..2d873ecc 100644 --- a/vertica_python/vertica/messages/backend_messages/row_description.py +++ b/vertica_python/vertica/messages/backend_messages/row_description.py @@ -40,7 +40,7 @@ returned in response to a SELECT, FETCH, etc query. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: diff --git a/vertica_python/vertica/messages/backend_messages/unknown.py b/vertica_python/vertica/messages/backend_messages/unknown.py index 280fbc7f..0f6e4a62 100644 --- a/vertica_python/vertica/messages/backend_messages/unknown.py +++ b/vertica_python/vertica/messages/backend_messages/unknown.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BackendMessage diff --git a/vertica_python/vertica/messages/backend_messages/verify_files.py b/vertica_python/vertica/messages/backend_messages/verify_files.py index d9d4124e..5a49d15f 100644 --- a/vertica_python/vertica/messages/backend_messages/verify_files.py +++ b/vertica_python/vertica/messages/backend_messages/verify_files.py @@ -23,7 +23,7 @@ before running the copy. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack_from diff --git a/vertica_python/vertica/messages/backend_messages/write_file.py b/vertica_python/vertica/messages/backend_messages/write_file.py index 21ca8d29..f5b87f49 100644 --- a/vertica_python/vertica/messages/backend_messages/write_file.py +++ b/vertica_python/vertica/messages/backend_messages/write_file.py @@ -24,7 +24,7 @@ saying which rows in the load were rejected. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import unpack_from diff --git a/vertica_python/vertica/messages/frontend_messages/__init__.py b/vertica_python/vertica/messages/frontend_messages/__init__.py index 371438a0..cba8b8bd 100644 --- a/vertica_python/vertica/messages/frontend_messages/__init__.py +++ b/vertica_python/vertica/messages/frontend_messages/__init__.py @@ -34,7 +34,7 @@ # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from .bind import Bind from .cancel_request import CancelRequest diff --git a/vertica_python/vertica/messages/frontend_messages/bind.py b/vertica_python/vertica/messages/frontend_messages/bind.py index dd1ec341..f35065f3 100644 --- a/vertica_python/vertica/messages/frontend_messages/bind.py +++ b/vertica_python/vertica/messages/frontend_messages/bind.py @@ -42,7 +42,7 @@ The response is either BindComplete or ErrorResponse. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/cancel_request.py b/vertica_python/vertica/messages/frontend_messages/cancel_request.py index 16bf7456..e5f54bad 100644 --- a/vertica_python/vertica/messages/frontend_messages/cancel_request.py +++ b/vertica_python/vertica/messages/frontend_messages/cancel_request.py @@ -46,7 +46,7 @@ then there will be no visible result at all. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/close.py b/vertica_python/vertica/messages/frontend_messages/close.py index d654e8db..523ecd1c 100644 --- a/vertica_python/vertica/messages/frontend_messages/close.py +++ b/vertica_python/vertica/messages/frontend_messages/close.py @@ -43,7 +43,7 @@ issue Close against a nonexistent statement or portal name. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/copy_data.py b/vertica_python/vertica/messages/frontend_messages/copy_data.py index eaa9691c..147c9c95 100644 --- a/vertica_python/vertica/messages/frontend_messages/copy_data.py +++ b/vertica_python/vertica/messages/frontend_messages/copy_data.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BulkFrontendMessage diff --git a/vertica_python/vertica/messages/frontend_messages/copy_done.py b/vertica_python/vertica/messages/frontend_messages/copy_done.py index a2dad813..b2f5fcc1 100644 --- a/vertica_python/vertica/messages/frontend_messages/copy_done.py +++ b/vertica_python/vertica/messages/frontend_messages/copy_done.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BulkFrontendMessage diff --git a/vertica_python/vertica/messages/frontend_messages/copy_error.py b/vertica_python/vertica/messages/frontend_messages/copy_error.py index 79c302d6..2fd2f636 100644 --- a/vertica_python/vertica/messages/frontend_messages/copy_error.py +++ b/vertica_python/vertica/messages/frontend_messages/copy_error.py @@ -19,7 +19,7 @@ CopyError message, which will cause the COPY SQL statement to fail with an error. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/copy_fail.py b/vertica_python/vertica/messages/frontend_messages/copy_fail.py index 9845888a..eb970ba4 100644 --- a/vertica_python/vertica/messages/frontend_messages/copy_fail.py +++ b/vertica_python/vertica/messages/frontend_messages/copy_fail.py @@ -40,7 +40,7 @@ CopyFail message, which will cause the COPY SQL statement to fail with an error. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/crypt_windows.py b/vertica_python/vertica/messages/frontend_messages/crypt_windows.py index e3fa8295..3bc8b03d 100755 --- a/vertica_python/vertica/messages/frontend_messages/crypt_windows.py +++ b/vertica_python/vertica/messages/frontend_messages/crypt_windows.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations # Initial permutation IP = ( diff --git a/vertica_python/vertica/messages/frontend_messages/describe.py b/vertica_python/vertica/messages/frontend_messages/describe.py index dfd8a86b..82b580d8 100644 --- a/vertica_python/vertica/messages/frontend_messages/describe.py +++ b/vertica_python/vertica/messages/frontend_messages/describe.py @@ -47,7 +47,7 @@ executed and any semantically-equivalent COPY statement. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/end_of_batch_request.py b/vertica_python/vertica/messages/frontend_messages/end_of_batch_request.py index b3ff44e9..f7152427 100644 --- a/vertica_python/vertica/messages/frontend_messages/end_of_batch_request.py +++ b/vertica_python/vertica/messages/frontend_messages/end_of_batch_request.py @@ -21,7 +21,7 @@ descriptions from the backend. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BulkFrontendMessage diff --git a/vertica_python/vertica/messages/frontend_messages/execute.py b/vertica_python/vertica/messages/frontend_messages/execute.py index d7f39c28..f8065c77 100644 --- a/vertica_python/vertica/messages/frontend_messages/execute.py +++ b/vertica_python/vertica/messages/frontend_messages/execute.py @@ -46,7 +46,7 @@ rows regardless of what you put here. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/flush.py b/vertica_python/vertica/messages/frontend_messages/flush.py index 2e3cfb98..c358b4ff 100644 --- a/vertica_python/vertica/messages/frontend_messages/flush.py +++ b/vertica_python/vertica/messages/frontend_messages/flush.py @@ -43,7 +43,7 @@ command before issuing more commands. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BulkFrontendMessage diff --git a/vertica_python/vertica/messages/frontend_messages/load_balance_request.py b/vertica_python/vertica/messages/frontend_messages/load_balance_request.py index 5afc17e4..b10961fa 100755 --- a/vertica_python/vertica/messages/frontend_messages/load_balance_request.py +++ b/vertica_python/vertica/messages/frontend_messages/load_balance_request.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/parse.py b/vertica_python/vertica/messages/frontend_messages/parse.py index 0a1a9f6f..a895dce5 100644 --- a/vertica_python/vertica/messages/frontend_messages/parse.py +++ b/vertica_python/vertica/messages/frontend_messages/parse.py @@ -46,7 +46,7 @@ "Cannot insert multiple commands into a prepared statement" """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/password.py b/vertica_python/vertica/messages/frontend_messages/password.py index 6ee59ee2..d4750995 100644 --- a/vertica_python/vertica/messages/frontend_messages/password.py +++ b/vertica_python/vertica/messages/frontend_messages/password.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import os import hashlib diff --git a/vertica_python/vertica/messages/frontend_messages/query.py b/vertica_python/vertica/messages/frontend_messages/query.py index b8b3bc72..9b78a719 100644 --- a/vertica_python/vertica/messages/frontend_messages/query.py +++ b/vertica_python/vertica/messages/frontend_messages/query.py @@ -42,7 +42,7 @@ string, and finally a ReadyForQuery message. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/ssl_request.py b/vertica_python/vertica/messages/frontend_messages/ssl_request.py index 9d376b1f..eb1e6dc8 100644 --- a/vertica_python/vertica/messages/frontend_messages/ssl_request.py +++ b/vertica_python/vertica/messages/frontend_messages/ssl_request.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from struct import pack diff --git a/vertica_python/vertica/messages/frontend_messages/startup.py b/vertica_python/vertica/messages/frontend_messages/startup.py index 2bebc079..28838f9d 100644 --- a/vertica_python/vertica/messages/frontend_messages/startup.py +++ b/vertica_python/vertica/messages/frontend_messages/startup.py @@ -40,7 +40,7 @@ Startup message. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import platform import os diff --git a/vertica_python/vertica/messages/frontend_messages/sync.py b/vertica_python/vertica/messages/frontend_messages/sync.py index fd10bb07..ddcfbe95 100644 --- a/vertica_python/vertica/messages/frontend_messages/sync.py +++ b/vertica_python/vertica/messages/frontend_messages/sync.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BulkFrontendMessage diff --git a/vertica_python/vertica/messages/frontend_messages/terminate.py b/vertica_python/vertica/messages/frontend_messages/terminate.py index 278f34a8..30c58a12 100644 --- a/vertica_python/vertica/messages/frontend_messages/terminate.py +++ b/vertica_python/vertica/messages/frontend_messages/terminate.py @@ -33,7 +33,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from ..message import BulkFrontendMessage diff --git a/vertica_python/vertica/messages/frontend_messages/verified_files.py b/vertica_python/vertica/messages/frontend_messages/verified_files.py index 0d042f6c..5c6ea6c9 100644 --- a/vertica_python/vertica/messages/frontend_messages/verified_files.py +++ b/vertica_python/vertica/messages/frontend_messages/verified_files.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import os from struct import pack diff --git a/vertica_python/vertica/messages/message.py b/vertica_python/vertica/messages/message.py index 3ef5479d..0169e80c 100644 --- a/vertica_python/vertica/messages/message.py +++ b/vertica_python/vertica/messages/message.py @@ -50,7 +50,7 @@ coming from the backend from UTF-8 into Python text string. """ -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from abc import ABCMeta from struct import pack diff --git a/vertica_python/vertica/mixins/__init__.py b/vertica_python/vertica/mixins/__init__.py index ec6cda6c..ff073ecc 100644 --- a/vertica_python/vertica/mixins/__init__.py +++ b/vertica_python/vertica/mixins/__init__.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations diff --git a/vertica_python/vertica/mixins/notice_response_attr.py b/vertica_python/vertica/mixins/notice_response_attr.py index 6990c8a8..cad376b8 100644 --- a/vertica_python/vertica/mixins/notice_response_attr.py +++ b/vertica_python/vertica/mixins/notice_response_attr.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations from collections import OrderedDict diff --git a/vertica_python/vertica/tlsmode.py b/vertica_python/vertica/tlsmode.py index 29186bce..d21b0a13 100644 --- a/vertica_python/vertica/tlsmode.py +++ b/vertica_python/vertica/tlsmode.py @@ -13,7 +13,7 @@ # limitations under the License. -from __future__ import print_function, division, absolute_import, annotations +from __future__ import annotations import ssl import warnings