summaryrefslogtreecommitdiff
path: root/numpy/lib/_iotools.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/_iotools.py')
-rw-r--r--numpy/lib/_iotools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py
index c9d81048f..451f0f610 100644
--- a/numpy/lib/_iotools.py
+++ b/numpy/lib/_iotools.py
@@ -132,8 +132,8 @@ def flatten_dtype(ndtype, flatten_base=False):
else:
types = []
for field in names:
- (typ, _) = ndtype.fields[field]
- flat_dt = flatten_dtype(typ, flatten_base)
+ info = ndtype.fields[field]
+ flat_dt = flatten_dtype(info[0], flatten_base)
types.extend(flat_dt)
return types