Closed magsol closed 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.
from zipfile import ZipFile f = ZipFile('filename.zip').open('filename.txt') for line in f.readlines():
Fixed.
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.