Skip to content

Commit 8a176b5

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

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

exhale/graph.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4038,11 +4038,7 @@ class view hierarchy. It will be present in the file page it was declared in
40384038
- Directories
40394039
- Files
40404040
'''
4041-
try:
4042-
from collections.abc import MutableMapping
4043-
except ImportError:
4044-
# TODO: remove when dropping python 2.7
4045-
from collections import MutableMapping
4041+
from collections.abc import MutableMapping
40464042
class UnabridgedDict(MutableMapping):
40474043
def __init__(self):
40484044
self.items = {}

testing/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
"""
1111

1212
from __future__ import unicode_literals
13-
try:
14-
from collections.abc import Mapping
15-
except ImportError:
16-
# TODO: remove when dropping python 2.7
17-
from collections import Mapping
13+
from collections.abc import Mapping
1814

1915

2016
def deep_update(orig, override):

0 commit comments

Comments
 (0)