summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-03-17 15:01:28 -0600
committerGitHub <noreply@github.com>2019-03-17 15:01:28 -0600
commitd89c4c7e7850578e5ee61e3e09abd86318906975 (patch)
tree6736e5339887d30ea1207a8a943fd4161e714279 /numpy/core
parent1a92b74a5387f676dd389ffd91054e8c2733f413 (diff)
parent32129453da0f9bf0f352adaaff79f884d2bf52bc (diff)
downloadnumpy-d89c4c7e7850578e5ee61e3e09abd86318906975.tar.gz
Merge pull request #13140 from mattip/lgtm-fixes
DEV: cleanup imports and some assignments (from LGTM)
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/_exceptions.py2
-rw-r--r--numpy/core/overrides.py1
-rw-r--r--numpy/core/shape_base.py1
3 files changed, 0 insertions, 4 deletions
diff --git a/numpy/core/_exceptions.py b/numpy/core/_exceptions.py
index 5e0105beb..227c08cd6 100644
--- a/numpy/core/_exceptions.py
+++ b/numpy/core/_exceptions.py
@@ -5,8 +5,6 @@ in python where it's easier.
By putting the formatting in `__str__`, we also avoid paying the cost for
users who silence the exceptions.
"""
-from numpy.core.overrides import set_module
-
def _unpack_tuple(tup):
if len(tup) == 1:
diff --git a/numpy/core/overrides.py b/numpy/core/overrides.py
index 46097f39c..9f91adc83 100644
--- a/numpy/core/overrides.py
+++ b/numpy/core/overrides.py
@@ -1,7 +1,6 @@
"""Implementation of __array_function__ overrides from NEP-18."""
import collections
import functools
-import os
from numpy.core._multiarray_umath import (
add_docstring, implement_array_function, _get_implementing_args)
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py
index e43519689..0eac772e8 100644
--- a/numpy/core/shape_base.py
+++ b/numpy/core/shape_base.py
@@ -5,7 +5,6 @@ __all__ = ['atleast_1d', 'atleast_2d', 'atleast_3d', 'block', 'hstack',
import functools
import operator
-import types
import warnings
from . import numeric as _nx