diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2019-02-21 12:49:33 -0700 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2019-02-21 12:49:33 -0700 |
| commit | b6dc039961768bd5f3a3d7f57e8c396f8fa02815 (patch) | |
| tree | 2cf18d5b551afd86970ff2d9c55675e071b7786d /numpy/matrixlib/tests/test_masked_matrix.py | |
| parent | 3898fe3fc26245e909c1d2d695b4455f07d4b06c (diff) | |
| download | numpy-b6dc039961768bd5f3a3d7f57e8c396f8fa02815.tar.gz | |
MAINT: Move pickle import to numpy.compat
The pickle module was being imported from numpy.core.numeric. It was
defined there in order to use pickle5 when available in Python3 and
cpickle in Python2. The numpy.compat module seems a better place for
that.
Diffstat (limited to 'numpy/matrixlib/tests/test_masked_matrix.py')
| -rw-r--r-- | numpy/matrixlib/tests/test_masked_matrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/matrixlib/tests/test_masked_matrix.py b/numpy/matrixlib/tests/test_masked_matrix.py index 52fd18577..1ecc15d4a 100644 --- a/numpy/matrixlib/tests/test_masked_matrix.py +++ b/numpy/matrixlib/tests/test_masked_matrix.py @@ -7,7 +7,7 @@ from numpy.ma.core import (masked_array, masked_values, masked, allequal, MaskType, getmask, MaskedArray, nomask, log, add, hypot, divide) from numpy.ma.extras import mr_ -from numpy.core.numeric import pickle +from numpy.compat import pickle class MMatrix(MaskedArray, np.matrix,): |
