We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac25521 commit b965a08Copy full SHA for b965a08
Lib/unittest/util.py
@@ -64,10 +64,7 @@ def strclass(cls):
64
return "%s.%s" % (cls.__module__, cls.__qualname__)
65
66
def _dedupe_sorted(lst):
67
- """Remove consecutive duplicate elements from a sorted list.
68
-
69
- Only requires that elements support equality comparison,
70
- not hashing."""
+ """Remove consecutive duplicate elements from a sorted list."""
71
result = []
72
for item in lst:
73
if not result or result[-1] != item:
0 commit comments