def close(self):
        try:
            return self._file.close()
        except __HOLE__, e:
            if e.errno == 2:
                # Means the file was moved or deleted before the tempfile could unlink it.
                # Still sets self._file.close_called and calls self._file.file.close()
                # before the exception
                return
            else:
                raise e
dataset/ETHPy150Open dcramer/django-compositepks/django/core/files/uploadedfile.py/TemporaryUploadedFile.close