Update code in Readme according to pe v0.1.5

This commit is contained in:
chfw 2015-04-23 08:54:08 +01:00
parent 6d9e481a9f
commit 85a6c2bd74
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ Here is the sample code::
>>> from pyexcel.ext import xls
# "example.xls"
>>> sheet = pe.load_book("your_file.xls")
>>> sheet = pe.get_book(file_name="your_file.xls")
>>> sheet
Sheet Name: Sheet 1
+---+---+---+
@ -169,7 +169,7 @@ You got to wrap the binary content with stream to get xls working::
>>> xlfile = "another_file.xls"
>>> with open(xlfile, "rb") as f:
... content = f.read()
... r = pe.load_book_from_memory("xls", content)
... r = pe.get_book(file_type="xls", content=content)
... print(r)
...
Sheet Name: Sheet 1