summaryrefslogtreecommitdiff
path: root/Lib/_abcoll.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-06 23:23:15 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-06 23:23:15 +0200
commit7c573857c7ac63395cc19b4785e0a91acbb83742 (patch)
tree07a97f21a663a1519f4e340dac0b46a631ac4134 /Lib/_abcoll.py
parentd919da9942290baf606fb03433d1e484d4f0f53d (diff)
downloadcpython-git-7c573857c7ac63395cc19b4785e0a91acbb83742.tar.gz
Issue #16373: Prevent infinite recursion for ABC Set class comparisons.
Diffstat (limited to 'Lib/_abcoll.py')
-rw-r--r--Lib/_abcoll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 0438afda28..8b650a7763 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -165,12 +165,12 @@ class Set(Sized, Iterable, Container):
def __gt__(self, other):
if not isinstance(other, Set):
return NotImplemented
- return other < self
+ return other.__lt__(self)
def __ge__(self, other):
if not isinstance(other, Set):
return NotImplemented
- return other <= self
+ return other.__le__(self)
def __eq__(self, other):
if not isinstance(other, Set):