summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-08-27 04:36:38 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2020-01-03 10:48:11 -0500
commited1e9659f103260a32536b4a7615393e3b1173dc (patch)
treebc5b0e2aae24dd6b35a7d9c8d9e77331176f2f51 /benchmarks
parentf30b2564d3923b2c307a026e4a22d20bc19872f0 (diff)
downloadnumpy-ed1e9659f103260a32536b4a7615393e3b1173dc.tar.gz
MAINT: Remove unnecessary 'from __future__ import ...' statements
As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/__init__.py2
-rw-r--r--benchmarks/benchmarks/bench_app.py2
-rw-r--r--benchmarks/benchmarks/bench_avx.py3
-rw-r--r--benchmarks/benchmarks/bench_core.py2
-rw-r--r--benchmarks/benchmarks/bench_function_base.py2
-rw-r--r--benchmarks/benchmarks/bench_import.py2
-rw-r--r--benchmarks/benchmarks/bench_indexing.py2
-rw-r--r--benchmarks/benchmarks/bench_io.py2
-rw-r--r--benchmarks/benchmarks/bench_lib.py2
-rw-r--r--benchmarks/benchmarks/bench_linalg.py2
-rw-r--r--benchmarks/benchmarks/bench_ma.py2
-rw-r--r--benchmarks/benchmarks/bench_overrides.py2
-rw-r--r--benchmarks/benchmarks/bench_random.py2
-rw-r--r--benchmarks/benchmarks/bench_records.py1
-rw-r--r--benchmarks/benchmarks/bench_reduce.py2
-rw-r--r--benchmarks/benchmarks/bench_shape_base.py2
-rw-r--r--benchmarks/benchmarks/bench_ufunc.py2
-rw-r--r--benchmarks/benchmarks/common.py2
18 files changed, 0 insertions, 36 deletions
diff --git a/benchmarks/benchmarks/__init__.py b/benchmarks/benchmarks/__init__.py
index e8a859ff4..e4193cf05 100644
--- a/benchmarks/benchmarks/__init__.py
+++ b/benchmarks/benchmarks/__init__.py
@@ -1,3 +1 @@
-from __future__ import absolute_import, division, print_function
-
from . import common
diff --git a/benchmarks/benchmarks/bench_app.py b/benchmarks/benchmarks/bench_app.py
index ccf6e4c4a..2a649f39b 100644
--- a/benchmarks/benchmarks/bench_app.py
+++ b/benchmarks/benchmarks/bench_app.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_avx.py b/benchmarks/benchmarks/bench_avx.py
index f7b524e43..023696b90 100644
--- a/benchmarks/benchmarks/bench_avx.py
+++ b/benchmarks/benchmarks/bench_avx.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
@@ -31,4 +29,3 @@ class AVX_UFunc(Benchmark):
def time_ufunc(self, ufuncname, stride, dtype):
self.f(self.arr[::stride])
-
diff --git a/benchmarks/benchmarks/bench_core.py b/benchmarks/benchmarks/bench_core.py
index f7ce61b8f..94d3ad503 100644
--- a/benchmarks/benchmarks/bench_core.py
+++ b/benchmarks/benchmarks/bench_core.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_function_base.py b/benchmarks/benchmarks/bench_function_base.py
index 2170c4fc4..3b4647773 100644
--- a/benchmarks/benchmarks/bench_function_base.py
+++ b/benchmarks/benchmarks/bench_function_base.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_import.py b/benchmarks/benchmarks/bench_import.py
index 83edecafe..4b6ecbc7b 100644
--- a/benchmarks/benchmarks/bench_import.py
+++ b/benchmarks/benchmarks/bench_import.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from subprocess import call
from sys import executable
from timeit import default_timer
diff --git a/benchmarks/benchmarks/bench_indexing.py b/benchmarks/benchmarks/bench_indexing.py
index a62a2050e..bb7596d0a 100644
--- a/benchmarks/benchmarks/bench_indexing.py
+++ b/benchmarks/benchmarks/bench_indexing.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark, get_squares_, get_indexes_, get_indexes_rand_
from os.path import join as pjoin
diff --git a/benchmarks/benchmarks/bench_io.py b/benchmarks/benchmarks/bench_io.py
index 439cd422f..d5ce9a271 100644
--- a/benchmarks/benchmarks/bench_io.py
+++ b/benchmarks/benchmarks/bench_io.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark, get_squares
import numpy as np
diff --git a/benchmarks/benchmarks/bench_lib.py b/benchmarks/benchmarks/bench_lib.py
index f65a96dad..c22ceaa5e 100644
--- a/benchmarks/benchmarks/bench_lib.py
+++ b/benchmarks/benchmarks/bench_lib.py
@@ -1,8 +1,6 @@
"""Benchmarks for `numpy.lib`."""
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_linalg.py b/benchmarks/benchmarks/bench_linalg.py
index 5c44162a2..3abbe3670 100644
--- a/benchmarks/benchmarks/bench_linalg.py
+++ b/benchmarks/benchmarks/bench_linalg.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark, get_squares_, get_indexes_rand, TYPES1
import numpy as np
diff --git a/benchmarks/benchmarks/bench_ma.py b/benchmarks/benchmarks/bench_ma.py
index aff78df0a..b214c0b86 100644
--- a/benchmarks/benchmarks/bench_ma.py
+++ b/benchmarks/benchmarks/bench_ma.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_overrides.py b/benchmarks/benchmarks/bench_overrides.py
index 58572d07d..f03120efa 100644
--- a/benchmarks/benchmarks/bench_overrides.py
+++ b/benchmarks/benchmarks/bench_overrides.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
try:
diff --git a/benchmarks/benchmarks/bench_random.py b/benchmarks/benchmarks/bench_random.py
index c52b463e5..9a5125876 100644
--- a/benchmarks/benchmarks/bench_random.py
+++ b/benchmarks/benchmarks/bench_random.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_records.py b/benchmarks/benchmarks/bench_records.py
index 41a6dd775..92e0fca16 100644
--- a/benchmarks/benchmarks/bench_records.py
+++ b/benchmarks/benchmarks/bench_records.py
@@ -1,4 +1,3 @@
-from __future__ import absolute_import, division, print_function
import os
from .common import Benchmark
diff --git a/benchmarks/benchmarks/bench_reduce.py b/benchmarks/benchmarks/bench_reduce.py
index 0043d5357..76c573a51 100644
--- a/benchmarks/benchmarks/bench_reduce.py
+++ b/benchmarks/benchmarks/bench_reduce.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark, TYPES1, get_squares
import numpy as np
diff --git a/benchmarks/benchmarks/bench_shape_base.py b/benchmarks/benchmarks/bench_shape_base.py
index 187b923cd..0c7dc4e72 100644
--- a/benchmarks/benchmarks/bench_shape_base.py
+++ b/benchmarks/benchmarks/bench_shape_base.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark
import numpy as np
diff --git a/benchmarks/benchmarks/bench_ufunc.py b/benchmarks/benchmarks/bench_ufunc.py
index 62e70782d..73159bd97 100644
--- a/benchmarks/benchmarks/bench_ufunc.py
+++ b/benchmarks/benchmarks/bench_ufunc.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
from .common import Benchmark, get_squares_
import numpy as np
diff --git a/benchmarks/benchmarks/common.py b/benchmarks/benchmarks/common.py
index 18a09fd40..c6037dea9 100644
--- a/benchmarks/benchmarks/common.py
+++ b/benchmarks/benchmarks/common.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, division, print_function
-
import numpy
import random