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:
parent
cd71e1a5b1
commit
d36a2cbd42
|
@ -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.
|
It's that easy.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue