Skip to content

Commit 2477029

Browse files
bschoeningdkropachev
authored andcommitted
removed future print_function, division, and with and some pre 3.7 handling (datastax#1208)
1 parent 3e34b9e commit 2477029

File tree

6 files changed

+0
-11
lines changed

6 files changed

+0
-11
lines changed

cassandra/cqlengine/functions.py

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

15-
from __future__ import division
1615
from datetime import datetime
1716

1817
from cassandra.cqlengine import UnicodeMixin, ValidationError

cassandra/util.py

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

15-
from __future__ import with_statement
1615
from _weakref import ref
1716
import calendar
1817
from collections import OrderedDict

examples/request_init_listener.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# about the encoded request size. Note that the counts would be available using the internal 'metrics' tracking --
1919
# this is just demonstrating a way to track a few custom attributes.
2020

21-
from __future__ import print_function
2221
from cassandra.cluster import Cluster
2322
from greplin import scales
2423

setup.py

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

15-
from __future__ import print_function
16-
1715
import os
1816
import shutil
1917
import sys

tests/integration/advanced/graph/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ def setup_module():
5050
MIN_LONG = -9223372036854775808
5151
ZERO_LONG = 0
5252

53-
if sys.version_info < (3, 0):
54-
MAX_LONG = long(MAX_LONG)
55-
MIN_LONG = long(MIN_LONG)
56-
ZERO_LONG = long(ZERO_LONG)
57-
5853
MAKE_STRICT = "schema.config().option('graph.schema_mode').set('production')"
5954
MAKE_NON_STRICT = "schema.config().option('graph.schema_mode').set('development')"
6055
ALLOW_SCANS = "schema.config().option('graph.allow_scan').set('true')"

tests/integration/long/utils.py

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

15-
from __future__ import print_function
1615
import logging
1716
import time
1817

0 commit comments

Comments
 (0)