mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Fixed (most) uses of cmp functions for sorting
This commit is contained in:
@ -2011,7 +2011,7 @@ class VennDiagramProofByContradiction(Scene):
|
||||
else:
|
||||
rejected.append((x, y))
|
||||
rejected.sort(
|
||||
lambda (x1, y1), (x2, y2) : (x2**2 + y2**2) - (x1**2 + y1**2)
|
||||
kay=lambda (x, y): (x**2 + y**2)
|
||||
)
|
||||
for i in range(len(photons) - len(pairs)):
|
||||
pairs.append(rejected.pop())
|
||||
|
Reference in New Issue
Block a user