Permalink
Browse files

Update example in docs.

Fixes #55.
  • Loading branch information...
1 parent 44b3c78 commit fd134b503bbc34eade36269821a590586f6c80cf @chrippa committed Dec 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/index.rst
View
@@ -80,7 +80,9 @@ Fetching a streams data::
# do something with data
- fd.close()
+ # All streams are not guaranteed to support .close()
+ if hasattr(fd, "close"):
+ fd.close()

0 comments on commit fd134b5

Please sign in to comment.