From d36a2cbd424d750a02773a7d40e44534c480e99a Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 25 Aug 2013 12:11:46 -0700 Subject: [PATCH] Write the example file reliably in the readme The previous way doesn't work on PyPy or Jython, and emits warnings in recent python3s. --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.