Permalink
Browse files

Fix a minor docstring issue.

  • Loading branch information...
1 parent 1b7cfb5 commit e0fcc9825fd0382a74151b02363e93944539fcb3 @behackett behackett committed Apr 20, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 gridfs/__init__.py
View
@@ -80,13 +80,13 @@ def new_file(self, **kwargs):
def put(self, data, **kwargs):
"""Put data in GridFS as a new file.
- Equivalent to doing:
+ Equivalent to doing::
- try:
- f = new_file(**kwargs)
- f.write(data)
- finally
- f.close()
+ try:
+ f = new_file(**kwargs)
+ f.write(data)
+ finally
+ f.close()
`data` can be either an instance of :class:`str` (:class:`bytes`
in python 3) or a file-like object providing a :meth:`read` method.

0 comments on commit e0fcc98

Please sign in to comment.