Skip to content

Commit 6a6c9ea

Browse files
committed
bug fix in doctest
1 parent 521def6 commit 6a6c9ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,17 @@ Here's the sample code to write a dictionary to an ods file::
108108
Read from an ods from memory
109109
*****************************
110110

111+
.. testcode::
112+
:hide:
113+
114+
>>> notneeded=io.seek(0)
115+
116+
111117
Here's the sample code::
112118

113119
>>> # This is just an illustration
114120
>>> # In reality, you might deal with ods file upload
115121
>>> # where you will read from requests.FILES['YOUR_ODS_FILE']
116-
>>> io.seek(0)
117122
>>> data = load_data(io)
118123
>>> print(json.dumps(data))
119124
{"Sheet 1": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], "Sheet 2": [[7.0, 8.0, 9.0], [10.0, 11.0, 12.0]]}

0 commit comments

Comments
 (0)