mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-01 15:20:55 +00:00
Ignore type checks on cmp usage (awaiting Python 3 porting)
This commit is contained in:
parent
50f81aa25d
commit
bc3508ce60
@ -1335,7 +1335,7 @@ class Status(MultiFormatResource):
|
|||||||
active = [s
|
active = [s
|
||||||
for s in self._get_all_statuses()
|
for s in self._get_all_statuses()
|
||||||
if s.get_active()]
|
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()
|
active.reverse()
|
||||||
return active
|
return active
|
||||||
|
|
||||||
@ -1343,7 +1343,7 @@ class Status(MultiFormatResource):
|
|||||||
recent = [s
|
recent = [s
|
||||||
for s in self._get_all_statuses()
|
for s in self._get_all_statuses()
|
||||||
if not s.get_active()]
|
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()
|
recent.reverse()
|
||||||
return recent
|
return recent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user