Revision 4497
Added by Aaron Marcuse-Kubitza over 12 years ago
join | ||
---|---|---|
36 | 36 |
map_1_cols = reader.next() |
37 | 37 |
for row in reader: |
38 | 38 |
if map_1_core_only: row = row[:2] |
39 |
if row[0] != '': map_1.setdefault(row[0], []).append(row) |
|
39 |
if row[0] != '': map_1.setdefault(row[0].lower(), []).append(row)
|
|
40 | 40 |
stream.close() |
41 | 41 |
|
42 | 42 |
# Join map 1 to map 0 |
... | ... | |
63 | 63 |
suffix = '' |
64 | 64 |
while True: |
65 | 65 |
try: |
66 |
out_rows = map_1[row[1]] |
|
66 |
out_rows = map_1[row[1].lower()]
|
|
67 | 67 |
break |
68 | 68 |
except KeyError: |
69 | 69 |
# Heuristically look for a match on a parent path. |
Also available in: Unified diff
join: Match terms case-insensitively