Write the example file reliably in the readme

The previous way doesn't work on PyPy or Jython, and emits warnings in recent python3s.
This commit is contained in:
Alex Gaynor 2013-08-25 12:11:46 -07:00
parent cd71e1a5b1
commit d36a2cbd42
1 changed files with 2 additions and 1 deletions

View File

@ -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.