Skip to content
Prev Previous commit
Docs compat on Py2/Py3
  • Loading branch information
alanjds committed Jan 15, 2018
commit 4283f126650b51a2b9c8b1dae2ff85f7a0aa8ff0
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ Just be sure to rewind it before passing.

.. code:: python

from io import BytesIO
from io import StringIO # Python2: from StringIO import StringIO
from dotenv.main import parse_dotenv
filelike = BytesIO('SPAM=EGSS\n')
filelike = StringIO('SPAM=EGSS\n')
filelike.seek(0)
parsed = parse_dotenv(stream=filelike)

Expand Down