diff options
author | Ondřej Čertík <ondrej.certik@gmail.com> | 2012-08-31 14:46:26 -0700 |
---|---|---|
committer | Ondřej Čertík <ondrej.certik@gmail.com> | 2012-08-31 14:46:26 -0700 |
commit | 0086bbc0145b9e9612b299e0b36b4782160c9ce1 (patch) | |
tree | 4e8d15b06019b173985e1ea89185c17ee4cb9ace /numpy/core/_internal.py | |
parent | c6d8734eddc133d2fe6babc7bde53d5e981945a1 (diff) | |
download | numpy-0086bbc0145b9e9612b299e0b36b4782160c9ce1.tar.gz |
FIX: simplify the import statement
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index fbe580dee..af08c50ed 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -285,7 +285,7 @@ def _newnames(datatype, order): # Given an array with fields and a sequence of field names # construct a new array with just those fields copied over def _index_fields(ary, fields): - from multiarray import empty, dtype + from multiarray import empty, dtype, array dt = ary.dtype names = [name for name in fields if name in dt.names] @@ -298,7 +298,6 @@ def _index_fields(ary, fields): # Return a copy for now until behavior is fully deprecated # in favor of returning view copy_dtype = {'names':view_dtype['names'], 'formats':view_dtype['formats']} - from numpy import array return array(view, dtype=copy_dtype, copy=True) # Given a string containing a PEP 3118 format specifier, |