diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-14 07:41:43 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-14 07:41:43 -0700 |
commit | 3f2c789ffd0d2e05596b15ea6cd644262f96200e (patch) | |
tree | 3ada9d38eaf9f5de1cd8e2529e73d163cd19d112 /numpy/lib/_iotools.py | |
parent | 61c5ac6758d05da6cf49b7247eca850d9db83a7a (diff) | |
parent | 0dfe67afd1ee9e4c905bf119673f6e634221f21b (diff) | |
download | numpy-3f2c789ffd0d2e05596b15ea6cd644262f96200e.tar.gz |
Merge pull request #3244 from charris/2to3-apply-zip-fixer
2to3: Apply zip fixer.
Diffstat (limited to 'numpy/lib/_iotools.py')
-rw-r--r-- | numpy/lib/_iotools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py index 4dedaadcd..827adac02 100644 --- a/numpy/lib/_iotools.py +++ b/numpy/lib/_iotools.py @@ -855,7 +855,7 @@ def easy_dtype(ndtype, names=None, defaultfmt="f%i", **validationargs): if nbtypes == 0: formats = tuple([ndtype.type] * len(names)) names = validate(names, defaultfmt=defaultfmt) - ndtype = np.dtype(zip(names, formats)) + ndtype = np.dtype(list(zip(names, formats))) # Structured dtype: just validate the names as needed else: ndtype.names = validate(names, nbfields=nbtypes, |