/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to remote.py

Merge warning fix from Naoki.

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
        return self._idx
225
225
 
226
226
    def __del__(self):
227
 
        os.remove(self._data_path)
228
 
        os.remove(self._idx_path)
 
227
        if self._idx is not None:
 
228
            self._idx.close()
 
229
            os.remove(self._idx_path)
 
230
        if self._data is not None:
 
231
            self._data.close()
 
232
            os.remove(self._data_path)
229
233
 
230
234
 
231
235
class RemoteGitRepository(GitRepository):