diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-05-08 09:23:35 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2020-05-08 09:23:35 +0100 |
commit | e499615c036871d42b09c96312ca0dd2da1b25c0 (patch) | |
tree | 5472c7371558ce871d723454daa90c7d0824d1c6 /numpy/lib/_iotools.py | |
parent | 5d6763496f6214c4a3240d3894328adf0e4cbebc (diff) | |
download | numpy-e499615c036871d42b09c96312ca0dd2da1b25c0.tar.gz |
STY: remove some parens in iteration
Diffstat (limited to 'numpy/lib/_iotools.py')
-rw-r--r-- | numpy/lib/_iotools.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py index 8c6a3b8b2..81399c8ce 100644 --- a/numpy/lib/_iotools.py +++ b/numpy/lib/_iotools.py @@ -574,7 +574,7 @@ class StringConverter: else: default = list(default) default.append([None] * (len(func) - len(default))) - for (fct, dft) in zip(func, default): + for fct, dft in zip(func, default): cls._mapper.insert(-1, (cls._getsubdtype(dft), fct, dft)) def __init__(self, dtype_or_func=None, default=None, missing_values=None, @@ -610,7 +610,7 @@ class StringConverter: dtype = self._getdtype(default) # Set the status according to the dtype _status = -1 - for (i, (deftype, func, default_def)) in enumerate(self._mapper): + for i, (deftype, func, default_def) in enumerate(self._mapper): if np.issubdtype(dtype.type, deftype): _status = i if default is None: @@ -620,7 +620,7 @@ class StringConverter: break # if a converter for the specific dtype is available use that last_func = func - for (i, (deftype, func, default_def)) in enumerate(self._mapper): + for i, (deftype, func, default_def) in enumerate(self._mapper): if dtype.type == deftype: _status = i last_func = func |