Skip to content

Commit d485d48

Browse files
committed
chore(py3): remove outdated compatibility imports
1 parent 8a176b5 commit d485d48

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

exhale/configs.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@
5151
from sphinx.util import logging
5252
from types import FunctionType, ModuleType
5353

54-
try:
55-
# Python 2 StringIO
56-
from cStringIO import StringIO
57-
except ImportError:
58-
# Python 3 StringIO
59-
from io import StringIO
54+
from io import StringIO
6055

6156

6257
logger = logging.getLogger(__name__)

exhale/graph.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@
2323
import textwrap
2424

2525
from bs4 import BeautifulSoup
26-
27-
try:
28-
# Python 2 StringIO
29-
from cStringIO import StringIO
30-
except ImportError:
31-
# Python 3 StringIO
32-
from io import StringIO
26+
from io import StringIO
3327

3428
__all__ = ["ExhaleRoot", "ExhaleNode"]
3529

0 commit comments

Comments
 (0)