summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorMitchell Faas <Faas.Mitchell@gmail.com>2021-01-31 17:06:57 +0100
committerMitchell Faas <Faas.Mitchell@gmail.com>2021-01-31 17:06:57 +0100
commit3e285e43b4e430b29711e53cded86eab00f85db2 (patch)
tree8466e8d11f527fecfe6f30201949ef6f4b1c6c5e /numpy/core/arrayprint.py
parentc47ddc18e490ae0b1a8422b2ce6e2b7b5781f87e (diff)
downloadnumpy-3e285e43b4e430b29711e53cded86eab00f85db2.tar.gz
MAINT: import refactor
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 7c43d6f75..5c1d6cb63 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -41,7 +41,7 @@ from .numeric import concatenate, asarray, errstate
from .numerictypes import (longlong, intc, int_, float_, complex_, bool_,
flexible)
from .overrides import array_function_dispatch, set_module
-from operator import index
+import operator
import warnings
import contextlib
@@ -91,7 +91,7 @@ def _make_options_dict(precision=None, threshold=None, edgeitems=None,
if precision is not None:
# forbid the bad precision arg as suggested by issue #18254
try:
- options['precision'] = index(precision)
+ options['precision'] = operator.index(precision)
except TypeError as e:
raise TypeError('precision must be an integer') from e