diff options
author | Brigitta Sipocz <bsipocz@gmail.com> | 2020-07-12 13:51:07 -0700 |
---|---|---|
committer | Brigitta Sipőcz <bsipocz@gmail.com> | 2022-05-17 20:13:31 -0700 |
commit | b1d6d24041f2eaa5e714e9ed98bb0eab4c799428 (patch) | |
tree | b96e5024ea1016dae3019bfdc7953c4dde3219aa /numpy/lib/npyio.py | |
parent | 497dc9402d04754b512e344c8039caafd55351da (diff) | |
download | numpy-b1d6d24041f2eaa5e714e9ed98bb0eab4c799428.tar.gz |
Remove deprecated iterates
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 33b49127c..210c0ea94 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -250,26 +250,6 @@ class NpzFile(Mapping): else: raise KeyError("%s is not a file in the archive" % key) - # deprecate the python 2 dict apis that we supported by accident in - # python 3. We forgot to implement itervalues() at all in earlier - # versions of numpy, so no need to deprecated it here. - - def iteritems(self): - # Numpy 1.15, 2018-02-20 - warnings.warn( - "NpzFile.iteritems is deprecated in python 3, to match the " - "removal of dict.itertems. Use .items() instead.", - DeprecationWarning, stacklevel=2) - return self.items() - - def iterkeys(self): - # Numpy 1.15, 2018-02-20 - warnings.warn( - "NpzFile.iterkeys is deprecated in python 3, to match the " - "removal of dict.iterkeys. Use .keys() instead.", - DeprecationWarning, stacklevel=2) - return self.keys() - @set_module('numpy') def load(file, mmap_mode=None, allow_pickle=False, fix_imports=True, |