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 61c932c commit 1e9ba2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions exhale/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -4038,11 +4038,7 @@ class view hierarchy. It will be present in the file page it was declared in
- Directories
- Files
'''
try:
from collections.abc import MutableMapping
except ImportError:
# TODO: remove when dropping python 2.7
from collections import MutableMapping
from collections.abc import MutableMapping
class UnabridgedDict(MutableMapping):
def __init__(self):
self.items = {}
Expand Down
6 changes: 1 addition & 5 deletions testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
"""

from __future__ import unicode_literals
try:
from collections.abc import Mapping
except ImportError:
# TODO: remove when dropping python 2.7
from collections import Mapping
from collections.abc import Mapping


def deep_update(orig, override):
Expand Down

0 comments on commit 1e9ba2e

Please sign in to comment.