From bc3508ce6098d65ae0407047a2e02d3a1bacfee9 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 29 Nov 2020 14:01:05 -0500 Subject: [PATCH] Ignore type checks on cmp usage (awaiting Python 3 porting) --- src/allmydata/web/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/web/status.py b/src/allmydata/web/status.py index 7f6020a99..de15230fd 100644 --- a/src/allmydata/web/status.py +++ b/src/allmydata/web/status.py @@ -1335,7 +1335,7 @@ class Status(MultiFormatResource): active = [s for s in self._get_all_statuses() if s.get_active()] - active.sort(lambda a, b: cmp(a.get_started(), b.get_started())) + active.sort(lambda a, b: cmp(a.get_started(), b.get_started())) # type: ignore # py2 active.reverse() return active @@ -1343,7 +1343,7 @@ class Status(MultiFormatResource): recent = [s for s in self._get_all_statuses() if not s.get_active()] - recent.sort(lambda a, b: cmp(a.get_started(), b.get_started())) + recent.sort(lambda a, b: cmp(a.get_started(), b.get_started())) # type: ignore # py2 recent.reverse() return recent