From be6c01f5fd9177510b8c538a4c0c6d493033d2b5 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 31 Aug 2016 17:45:04 -0400 Subject: [PATCH] [fix] csv --- scripts/geodata/openaddresses/download_openaddresses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/openaddresses/download_openaddresses.py b/scripts/geodata/openaddresses/download_openaddresses.py index 085ac3a8..503b7b6a 100644 --- a/scripts/geodata/openaddresses/download_openaddresses.py +++ b/scripts/geodata/openaddresses/download_openaddresses.py @@ -43,9 +43,9 @@ def openaddresses_download_all_files(out_dir): if not download_file(OPENADDRESSES_STATE_URL, local_state_file_path): sys.exit('Could not download state.txt file') - reader = unicode_csv_reader(local_state_file_path, delimiter='\t') - + reader = unicode_csv_reader(open(local_state_file_path), delimiter='\t') headers = reader.next() + source_index = headers.index('source') url_index = headers.index('processed')