Skip to content

Commit

Permalink
minor: doc update + extraneous import
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Aug 13, 2009
1 parent 91702c2 commit 8c2f9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pymongo/collection.py
Expand Up @@ -192,7 +192,7 @@ def insert(self, doc_or_docs,

def update(self, spec, document,
upsert=False, manipulate=False, safe=False):
"""Update an object(s) in this collection.
"""Update a document(s) in this collection.
Raises TypeError if either spec or document isn't an instance of
dict or upsert isn't an instance of bool. If `safe` is True then
Expand All @@ -205,7 +205,7 @@ def update(self, spec, document,
a document to be updated
- `document`: a SON object specifying the fields to be changed in the
selected document(s), or (in the case of an upsert) the document to
be inserted.
be inserted
- `upsert` (optional): perform an upsert operation
- `manipulate` (optional): manipulate the document before updating?
- `safe` (optional): check that the update succeeded?
Expand Down
2 changes: 1 addition & 1 deletion pymongo/connection.py
Expand Up @@ -24,7 +24,7 @@
import errno
import datetime

from errors import ConnectionFailure, InvalidName
from errors import ConnectionFailure
from errors import OperationFailure, ConfigurationError
from errors import AutoReconnect
from database import Database
Expand Down

0 comments on commit 8c2f9a2

Please sign in to comment.