Skip to content

Commit

Permalink
chore(py3): remove outdated compatibility imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed May 15, 2024
1 parent 1e9ba2e commit 023b9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
7 changes: 1 addition & 6 deletions exhale/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
8 changes: 1 addition & 7 deletions exhale/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 023b9e6

Please sign in to comment.