Skip to content

Commit 1fd4f27

Browse files
authored
Merge pull request #9 from matkoniecz/patch-1
Remove Python2 code from README.rst
2 parents 9193f2d + dccf2eb commit 1fd4f27

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

README.rst

+2-9
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,8 @@ As a standalone library
9494

9595
>>> import os
9696
>>> import sys
97-
>>> if sys.version_info[0] < 3:
98-
... from StringIO import StringIO
99-
... else:
100-
... from io import BytesIO as StringIO
101-
>>> PY2 = sys.version_info[0] == 2
102-
>>> if PY2 and sys.version_info[1] < 7:
103-
... from ordereddict import OrderedDict
104-
... else:
105-
... from collections import OrderedDict
97+
>>> from io import BytesIO as StringIO
98+
>>> from collections import OrderedDict
10699

107100

108101
.. testcode::

0 commit comments

Comments
 (0)