Skip to content

Commit

Permalink
Remove Python2 code from README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoniecz authored Nov 17, 2024
1 parent 9193f2d commit dccf2eb
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 dccf2eb

Please sign in to comment.