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"]