diff --git a/gridfs/__init__.py b/gridfs/__init__.py index 76cc68663..09238873b 100644 --- a/gridfs/__init__.py +++ b/gridfs/__init__.py @@ -590,7 +590,7 @@ class GridFSBucket(object): Raises :exc:`~gridfs.errors.NoFile` if no file with file_id exists. :Parameters: - -`file_id`: The _id of the file to be downloaded. + - `file_id`: The _id of the file to be downloaded. """ gout = GridOut(self._collection, file_id) @@ -616,8 +616,8 @@ class GridFSBucket(object): Raises :exc:`~gridfs.errors.NoFile` if no file with file_id exists. :Parameters: - -`file_id`: The _id of the file to be downloaded. - -`destination`: a file-like object implementing :meth:`write`. + - `file_id`: The _id of the file to be downloaded. + - `destination`: a file-like object implementing :meth:`write`. """ gout = self.open_download_stream(file_id) for chunk in gout: @@ -632,13 +632,13 @@ class GridFSBucket(object): my_db = MongoClient().test fs = GridFSBucket(my_db) # Get _id of file to delete - file_id = fs.upload_from_stream("test_file", "data I want to store!") + file_id = fs.upload_from_stream("test_file", "data I want to store!") fs.delete(file_id) Raises :exc:`~gridfs.errors.NoFile` if no file with file_id exists. :Parameters: - -`file_id`: The _id of the file to be deleted. + - `file_id`: The _id of the file to be deleted. """ res = self._files.delete_one({"_id": file_id}) self._chunks.delete_many({"files_id": file_id})