Skip to content

Commit 9289757

Browse files
committed
Remove the underscore imports like _sortedlist, etc.
1 parent 363720b commit 9289757

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

src/sortedcontainers/__init__.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,15 @@
4444
:license: Apache 2.0, see LICENSE for more details.
4545
4646
"""
47-
# pylint: disable=reimported
4847

49-
50-
from .sortedlist import SortedList, SortedKeyList, SortedListWithKey
51-
from .sortedset import SortedSet
5248
from .sorteddict import (
5349
SortedDict,
54-
SortedKeysView,
5550
SortedItemsView,
51+
SortedKeysView,
5652
SortedValuesView,
5753
)
58-
59-
try:
60-
from ._sortedlist import SortedList, SortedKeyList, SortedListWithKey
61-
from ._sortedset import SortedSet
62-
from ._sorteddict import (
63-
SortedDict,
64-
SortedKeysView,
65-
SortedItemsView,
66-
SortedValuesView,
67-
)
68-
except ImportError:
69-
pass
54+
from .sortedlist import SortedKeyList, SortedList, SortedListWithKey
55+
from .sortedset import SortedSet
7056

7157
__all__ = [
7258
'SortedList',

0 commit comments

Comments
 (0)