Skip to content

Commit 4283f12

Browse files
committed
Docs compat on Py2/Py3
1 parent 6c5c83a commit 4283f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ Just be sure to rewind it before passing.
120120

121121
.. code:: python
122122
123-
from io import BytesIO
123+
from io import StringIO # Python2: from StringIO import StringIO
124124
from dotenv.main import parse_dotenv
125-
filelike = BytesIO('SPAM=EGSS\n')
125+
filelike = StringIO('SPAM=EGSS\n')
126126
filelike.seek(0)
127127
parsed = parse_dotenv(stream=filelike)
128128

0 commit comments

Comments
 (0)