summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/_py_collections.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-07-31 13:08:36 +0300
committerGitHub <noreply@github.com>2022-07-31 12:08:36 +0200
commit1657312ba77cf2a8751aed195b4d246afb28b64e (patch)
tree8bd79e504b86f691a78e71a78b6140f9ee790b2d /lib/sqlalchemy/util/_py_collections.py
parentf8c4dba4e9f130c18ce00597c036bc26ae7abf90 (diff)
downloadsqlalchemy-1657312ba77cf2a8751aed195b4d246afb28b64e.tar.gz
Remove `__cmp__` methods (#8313)
Diffstat (limited to 'lib/sqlalchemy/util/_py_collections.py')
-rw-r--r--lib/sqlalchemy/util/_py_collections.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sqlalchemy/util/_py_collections.py b/lib/sqlalchemy/util/_py_collections.py
index d36157b10..f8348714c 100644
--- a/lib/sqlalchemy/util/_py_collections.py
+++ b/lib/sqlalchemy/util/_py_collections.py
@@ -296,9 +296,6 @@ class IdentitySet:
def clear(self) -> None:
self._members.clear()
- def __cmp__(self, other: Any) -> NoReturn:
- raise TypeError("cannot compare sets using cmp()")
-
def __eq__(self, other: Any) -> bool:
if isinstance(other, IdentitySet):
return self._members == other._members