boto/boto — pull request #1201 by hashbackup (2012-12-24 15:27:30+00:00)
Title: S3: cleanup if key.get_contents_to_filename fails

if key.get_contents_to_filename fails, it leaves an empty file and open file descriptor behind. Instead, remove the file (since we created it, or at least truncated it to 0 length) and close the file descriptor.