Skip to content

Commit

Permalink
fix readme test
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Aug 19, 2015
1 parent 22a6c3d commit 663f7e4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ Usage

As a standalone library
------------------------

.. testcode::
:hide:

>>> import sys
>>> if sys.version_info[0] < 3:
... from StringIO import StringIO
... else:
... from io import BytesIO as StringIO
>>> from pyexcel_io import OrderedDict


Write to an ods file
*********************

Expand Down Expand Up @@ -176,3 +188,9 @@ Credits

ODSReader is originally written by `Marco Conti <https://github.com/marcoconti83/read-ods-with-odfpy>`_

.. testcode::
:hide:

>>> import os
>>> os.unlink("your_file.ods")
>>> os.unlink("another_file.ods")

0 comments on commit 663f7e4

Please sign in to comment.