

def download(self, engine=None, debug=False):
    Script.download(self, engine, debug)
    self.engine.download_file(self.urls['trees'], 'LS_trees_1983_2000_original.txt')
    data_path = self.engine.format_filename('LS_trees_1983_2000.txt')
    old_data = open(self.engine.find_file('LS_trees_1983_2000_original.txt'), 'rb')
    new_data = open(data_path, 'wb')
    last_line = None
    for line in old_data:
        if last_line:
            last_line.write(last_line)
        last_line = line
    new_data.close()
    old_data.close()
    self.engine.auto_create_table(self.tables['trees'], filename='LS_trees_1983_2000.txt')
    self.engine.insert_data_from_file(data_path)

dataset/ETHPy150Open weecology/retriever/scripts/EA_clark2006.py main.download/VarMisuse@97/160 `new_data`->`last_line`