diff --git a/records.py b/records.py index 1fd6a93..80f12d8 100644 --- a/records.py +++ b/records.py @@ -424,9 +424,9 @@ def _reduce_datetimes(row): row = list(row) - for i in range(len(row)): - if hasattr(row[i], 'isoformat'): - row[i] = row[i].isoformat() + for i, element in enumerate(row): + if hasattr(element, 'isoformat'): + row[i] = element.isoformat() return tuple(row) def cli():