django_gcp/storage/gcloud.py
def close(self):
        """Close the file-like object"""
        if self._file is not None:
            if self._is_dirty:
                blob_params = self._storage.get_object_parameters(self.name)
                self.blob.upload_from_file(
                    self.file,
                    rewind=True,
                    content_type=self.mime_type,
                    predefined_acl=blob_params.get("acl", self._storage.settings.default_acl),
                )
            self._file.close()
            self._file = None
Close the file-like object
Close the file-like object
Close the file - like object
def close(self):
        if self._file is not None:
            if self._is_dirty:
                blob_params = self._storage.get_object_parameters(self.name)
                self.blob.upload_from_file(
                    self.file,
                    rewind=True,
                    content_type=self.mime_type,
                    predefined_acl=blob_params.get("acl", self._storage.settings.default_acl),
                )
            self._file.close()
            self._file = None
def close ( self ) : if self . _file is not None : if self . _is_dirty : blob_params = self . _storage . get_object_parameters ( self . name ) self . blob . upload_from_file ( self . file , rewind = True , content_type = self . mime_type , predefined_acl = blob_params . get ( "acl" , self . _storage . settings . default_acl ) , ) self . _file . close ( ) self . _file = None
Close the file-like object
Close the file - like object
"""Close the file-like object"""
self