summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-25 12:11:46 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-25 12:11:46 -0700
commitd36a2cbd424d750a02773a7d40e44534c480e99a (patch)
tree6804723359d9e9d9bf68badbaf7bcd525428c9dd /README.rst
parentcd71e1a5b14cef2e95876553a6ad4b0c71a1201e (diff)
downloadtablib-d36a2cbd424d750a02773a7d40e44534c480e99a.tar.gz
Write the example file reliably in the readme
The previous way doesn't work on PyPy or Jython, and emits warnings in recent python3s.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index aa6b73a..0c8875d 100644
--- a/README.rst
+++ b/README.rst
@@ -117,7 +117,8 @@ EXCEL!
++++++
::
- >>> open('people.xls', 'wb').write(data.xls)
+ >>> with open('people.xls', 'wb') as f:
+ ... f.write(data.xls)
It's that easy.