From 023b9e6121659477ad2aaf4c9e7a2b8e559358c6 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Fri, 20 Oct 2023 20:53:14 +0200 Subject: [PATCH] chore(py3): remove outdated compatibility imports --- exhale/configs.py | 7 +------ exhale/graph.py | 8 +------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/exhale/configs.py b/exhale/configs.py index e54dbbf..118b0e2 100644 --- a/exhale/configs.py +++ b/exhale/configs.py @@ -51,12 +51,7 @@ from sphinx.util import logging from types import FunctionType, ModuleType -try: - # Python 2 StringIO - from cStringIO import StringIO -except ImportError: - # Python 3 StringIO - from io import StringIO +from io import StringIO logger = logging.getLogger(__name__) diff --git a/exhale/graph.py b/exhale/graph.py index 69cc706..abbd845 100644 --- a/exhale/graph.py +++ b/exhale/graph.py @@ -23,13 +23,7 @@ import textwrap from bs4 import BeautifulSoup - -try: - # Python 2 StringIO - from cStringIO import StringIO -except ImportError: - # Python 3 StringIO - from io import StringIO +from io import StringIO __all__ = ["ExhaleRoot", "ExhaleNode"]