mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Modernize Python 2 for Python 3
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import itertools as it
|
||||
import numpy as np
|
||||
from functools import reduce
|
||||
|
||||
|
||||
def remove_list_redundancies(l):
|
||||
@ -99,8 +100,8 @@ def make_even_by_cycling(iterable_1, iterable_2):
|
||||
cycle1 = it.cycle(iterable_1)
|
||||
cycle2 = it.cycle(iterable_2)
|
||||
return (
|
||||
[cycle1.next() for x in range(length)],
|
||||
[cycle2.next() for x in range(length)]
|
||||
[next(cycle1) for x in range(length)],
|
||||
[next(cycle2) for x in range(length)]
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user