luispedro / waldo

Waldo Project
MIT License
2 stars 3 forks source link

LOCATE load.py should use zipfile to read #56

Closed magsol closed 14 years ago

magsol commented 14 years ago

In locatedb/load.py, an assumption is made that the file's format is XML. However, the LOCATE files are downloaded by update.sh as .zip files. Thus the load.py should be changed to use the zipfile module if the file is a compressed .zip archive.

magsol commented 14 years ago

from zipfile import ZipFile f = ZipFile('filename.zip').open('filename.txt') for line in f.readlines():

magsol commented 14 years ago

Fixed.