mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
Modernize Python 2 code to get ready for Python 3 yet again
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
from __future__ import print_function
|
||||
from big_ol_pile_of_manim_imports import *
|
||||
from once_useful_constructs.combinatorics import *
|
||||
|
||||
@ -72,7 +73,7 @@ class BuildNewPascalRow(Transform):
|
||||
# align with original (copy got centered on screen)
|
||||
c1 = new_pt.coords_to_mobs[0][0].get_center()
|
||||
c2 = mobject.coords_to_mobs[0][0].get_center()
|
||||
print c1, c2
|
||||
print(c1, c2)
|
||||
v = c2 - c1
|
||||
new_pt.shift(v)
|
||||
|
||||
|
Reference in New Issue
Block a user