Permalink
Browse files

Fix GridFS example code.

  • Loading branch information...
1 parent 1361579 commit ea38602bef3880d291bba1da2938656b271a3e50 @ajdavis ajdavis committed Feb 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 gridfs/grid_file.py
View
@@ -124,7 +124,7 @@ def __init__(self, root_collection, **kwargs):
>>> from pymongo import MongoClient
>>> from gridfs import GridFS
>>> client = MongoClient(w=0) # turn off write acknowledgment
- >>> fs = GridFS(client)
+ >>> fs = GridFS(client.database)
>>> gridin = fs.new_file()
>>> request = client.start_request()
>>> try:

0 comments on commit ea38602

Please sign in to comment.