From dccf2ebf72b31f3331c97282cb0cb34bb93c355b Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Sun, 17 Nov 2024 19:35:09 +0100 Subject: [PATCH] Remove Python2 code from README.rst Python2 is not supported anymore per https://github.com/pyexcel/pyexcel-odsr/blob/dev/setup.py#L53 --- README.rst | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index a0c9b72..25ff0d5 100644 --- a/README.rst +++ b/README.rst @@ -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::