Skip to content

Commit 61261d3

Browse files
committed
update pyexcel-io version
1 parent ac0f272 commit 61261d3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Here's the sample code to write a dictionary to an xls file::
9393
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
9494
>>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
9595
>>> io = StringIO()
96-
>>> writer = store_data(io, data)
96+
>>> store_data(io, data)
9797
>>> # do something with the io
9898
>>> # In reality, you might give it to your http response
9999
>>> # object for downloading
@@ -128,8 +128,6 @@ Here is the sample code::
128128

129129
>>> import pyexcel as pe
130130
>>> from pyexcel.ext import xls
131-
132-
# "example.xls"
133131
>>> sheet = pe.get_book(file_name="your_file.xls")
134132
>>> sheet
135133
Sheet Name: Sheet 1
@@ -157,9 +155,9 @@ You got to wrap the binary content with stream to get xls working::
157155

158156
>>> # This is just an illustration
159157
>>> # In reality, you might deal with xls file upload
160-
>>> # where you will read from requests.FILES['YOUR_XL_FILE']
161-
>>> xlfile = "another_file.xls"
162-
>>> with open(xlfile, "rb") as f:
158+
>>> # where you will read from requests.FILES['YOUR_XLS_FILE']
159+
>>> xlsfile = "another_file.xls"
160+
>>> with open(xlsfile, "rb") as f:
163161
... content = f.read()
164162
... r = pe.get_book(file_type="xls", file_content=content)
165163
... print(r)
@@ -208,7 +206,7 @@ Dependencies
208206

209207
1. xlrd
210208
2. xlwt-future
211-
209+
3. pyexcel-io >= 0.0.4
212210

213211
.. testcode::
214212
:hide:

0 commit comments

Comments
 (0)