diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-10-10 12:35:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 12:35:28 -0500 |
commit | 9942b71a6782a850cf59462a3a9ceec39e741880 (patch) | |
tree | 4a325f53c371eed147ce361a8f2ab7c8171e57cb /numpy/lib/npyio.py | |
parent | 3626bf49a8520f521332f79ea89d330f8a464edf (diff) | |
parent | 7372f8dcc6af4446e502c0daec3199dace27e863 (diff) | |
download | numpy-9942b71a6782a850cf59462a3a9ceec39e741880.tar.gz |
Merge pull request #12133 from pierreglaser/centralize-pickle-import
MAINT, TST refactor pickle imports and tests
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 7eb203868..62fc9c5b3 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -23,12 +23,11 @@ from numpy.compat import ( asbytes, asstr, asunicode, asbytes_nested, bytes, basestring, unicode, is_pathlib_path ) +from numpy.core.numeric import pickle if sys.version_info[0] >= 3: - import pickle from collections.abc import Mapping else: - import cPickle as pickle from future_builtins import map from collections import Mapping |