Skip to content

Commit 9cc4225

Browse files
authored
removed future print_function, division, and with and some pre 3.7 handling (#1208)
1 parent 9aca00b commit 9cc4225

File tree

7 files changed

+1
-17
lines changed

7 files changed

+1
-17
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

ez_setup.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,7 @@ def _extractall(self, path=".", members=None):
197197
self.extract(tarinfo, path)
198198

199199
# Reverse sort directories.
200-
if sys.version_info < (2, 4):
201-
def sorter(dir1, dir2):
202-
return cmp(dir1.name, dir2.name)
203-
directories.sort(sorter)
204-
directories.reverse()
205-
else:
206-
directories.sort(key=operator.attrgetter('name'), reverse=True)
200+
directories.sort(key=operator.attrgetter('name'), reverse=True)
207201

208202
# Set correct owner, mtime and filemode on directories.
209203
for tarinfo in directories:

setup.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 os
1716
import sys
1817
import warnings

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)