Skip to content

Commit b400697

Browse files
absurdfarcedkropachev
authored andcommitted
Revert "remove unnecessary import __future__ (datastax#1156)"
This reverts commit 6894b02.
1 parent 0b054ee commit b400697

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

cassandra/cluster.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
This module houses the main classes you will interact with,
1717
:class:`.Cluster` and :class:`.Session`.
1818
"""
19+
from __future__ import absolute_import
1920

2021
import atexit
2122
import datetime

cassandra/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import absolute_import # to enable import io from stdlib
1516
from collections import defaultdict, deque
1617
import errno
1718
from functools import wraps, partial, total_ordering

cassandra/cqlengine/functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import division
1516
from datetime import datetime
1617

1718
from cassandra.cqlengine import UnicodeMixin, ValidationError

cassandra/cqltypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
# for example), these classes would be a good place to tack on
2828
# .from_cql_literal() and .as_cql_literal() classmethods (or whatever).
2929

30+
from __future__ import absolute_import # to enable import io from stdlib
3031
import ast
3132
from binascii import unhexlify
3233
import calendar

cassandra/protocol.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import absolute_import # to enable import io from stdlib
1516
from collections import namedtuple
1617
import logging
1718
import socket

0 commit comments

Comments
 (0)