Skip to content

Commit

Permalink
Rewrite ranged loop as zip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Amos committed Aug 24, 2016
1 parent 2227e60 commit 1cf7672
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vectordatasource/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -3421,10 +3421,7 @@ def _parse_csv_row(self, row, cols):
# for the first row where all the matchers return true.
target_vals = {}

for i in range(0, len(row)):
is_target, key, typ = cols[i]
val = row[i]

for (is_target, key, typ), val in zip(cols, row):
if is_target:
target_vals[key] = typ(val)

Expand Down

0 comments on commit 1cf7672

Please sign in to comment.