Skip to content

Commit

Permalink
Strip out unnecessary compat for Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mlenzen committed Oct 2, 2020
1 parent 7a02ba0 commit 18ce0e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 40 deletions.
3 changes: 2 additions & 1 deletion collections_extended/__init__.py
@@ -1,5 +1,6 @@
"""collections_extended contains a few extra basic data structures."""
from ._compat import Collection
from collections.abc import Collection

from .bags import bag, frozenbag, UniqueElementsView, CountsView, Bag
from .bijection import bijection
from .indexed_dict import IndexedDict
Expand Down
35 changes: 0 additions & 35 deletions collections_extended/_compat.py

This file was deleted.

3 changes: 1 addition & 2 deletions collections_extended/bags.py
Expand Up @@ -2,10 +2,9 @@
import heapq
from abc import ABCMeta, abstractmethod
from collections import defaultdict
from collections.abc import Hashable, Set
from collections.abc import Collection, Hashable, Set
from operator import itemgetter

from ._compat import Collection
from ._util import deprecated

__all__ = (
Expand Down
3 changes: 1 addition & 2 deletions collections_extended/range_map.py
@@ -1,9 +1,8 @@
"""RangeMap class definition."""
from abc import ABCMeta, abstractmethod
from bisect import bisect_left, bisect_right
from collections.abc import Mapping, Set
from collections.abc import Collection, Mapping, Set

from ._compat import Collection
from .sentinel import NOT_SET


Expand Down

0 comments on commit 18ce0e3

Please sign in to comment.