From 8c3b2375e41e7d9cb2445e327cc2145e4489cce2 Mon Sep 17 00:00:00 2001 From: Brad Schoening Date: Tue, 16 Dec 2025 13:22:39 -0500 Subject: [PATCH] remove obsolete __future__ import absolute_import patch by Brad Schoening; reviewed by Brad Schoening and Bret McGuire reference: https://github.com/apache/cassandra-python-driver/pull/1263 --- cassandra/cluster.py | 1 - cassandra/connection.py | 1 - cassandra/cqltypes.py | 1 - cassandra/protocol.py | 1 - tests/integration/cqlengine/query/test_queryset.py | 1 - 5 files changed, 5 deletions(-) diff --git a/cassandra/cluster.py b/cassandra/cluster.py index 88c8d2707a..751f5e34ff 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -16,7 +16,6 @@ This module houses the main classes you will interact with, :class:`.Cluster` and :class:`.Session`. """ -from __future__ import absolute_import import atexit import datetime diff --git a/cassandra/connection.py b/cassandra/connection.py index fd7808afc5..ac2578a16c 100644 --- a/cassandra/connection.py +++ b/cassandra/connection.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import # to enable import io from stdlib from collections import defaultdict, deque import errno from functools import wraps, partial, total_ordering diff --git a/cassandra/cqltypes.py b/cassandra/cqltypes.py index 99018eef03..4d63ae5195 100644 --- a/cassandra/cqltypes.py +++ b/cassandra/cqltypes.py @@ -27,7 +27,6 @@ # for example), these classes would be a good place to tack on # .from_cql_literal() and .as_cql_literal() classmethods (or whatever). -from __future__ import absolute_import # to enable import io from stdlib import ast from binascii import unhexlify import calendar diff --git a/cassandra/protocol.py b/cassandra/protocol.py index 9dfdbf3022..4aa52ee697 100644 --- a/cassandra/protocol.py +++ b/cassandra/protocol.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import # to enable import io from stdlib from collections import namedtuple import logging import socket diff --git a/tests/integration/cqlengine/query/test_queryset.py b/tests/integration/cqlengine/query/test_queryset.py index 34b4ab5964..a4420e8283 100644 --- a/tests/integration/cqlengine/query/test_queryset.py +++ b/tests/integration/cqlengine/query/test_queryset.py @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import import unittest