mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 06:46:17 +00:00
removed a manual indexer iterator pitfall
This commit is contained in:
+3
-3
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user