Skip to content

Commit

Permalink
Docs compat on Py2/Py3
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjds committed Jan 15, 2018
1 parent 6c5c83a commit 4283f12
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 4283f12

Please sign in to comment.