Skip to content

Commit

Permalink
Merge pull request #9 from matkoniecz/patch-1
Browse files Browse the repository at this point in the history
Remove Python2 code from README.rst
  • Loading branch information
chfw authored Nov 17, 2024
2 parents 9193f2d + dccf2eb commit 1fd4f27
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,8 @@ As a standalone library

>>> import os
>>> import sys
>>> if sys.version_info[0] < 3:
... from StringIO import StringIO
... else:
... from io import BytesIO as StringIO
>>> PY2 = sys.version_info[0] == 2
>>> if PY2 and sys.version_info[1] < 7:
... from ordereddict import OrderedDict
... else:
... from collections import OrderedDict
>>> from io import BytesIO as StringIO
>>> from collections import OrderedDict


.. testcode::
Expand Down

0 comments on commit 1fd4f27

Please sign in to comment.