diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-07 15:33:46 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-07 15:33:46 -0700 |
commit | 1340fa646d414b49856314bad339b4ae8ea4c4d8 (patch) | |
tree | 20fce4d1fe391d3afca4e32245c59fdc2e6d2601 /numpy/lib/npyio.py | |
parent | 756d13449aa3d0b6be4439e87c5cb520c419d30b (diff) | |
parent | 6339930ff42f52259e898b18eb6e9dd7d1be4f86 (diff) | |
download | numpy-1340fa646d414b49856314bad339b4ae8ea4c4d8.tar.gz |
Merge pull request #3205 from charris/2to3-apply-dict-fixer
2to3: apply `dict` fixer.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 14d41a3c1..7f66fb141 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -572,7 +572,7 @@ def _savez(file, args, kwds, compress): fd, tmpfile = tempfile.mkstemp(suffix='-numpy.npy') os.close(fd) try: - for key, val in namedict.iteritems(): + for key, val in namedict.items(): fname = key + '.npy' fid = open(tmpfile, 'wb') try: @@ -811,7 +811,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, packing = [(N, tuple)] # By preference, use the converters specified by the user - for i, conv in (user_converters or {}).iteritems(): + for i, conv in (user_converters or {}).items(): if usecols: try: i = usecols.index(i) |