After running 2to3

This commit is contained in:
Grant Sanderson
2018-08-09 17:56:05 -07:00
parent 06a65190e7
commit 858051a806
172 changed files with 2117 additions and 2221 deletions

View File

@ -1,4 +1,4 @@
from __future__ import absolute_import
from constants import *
@ -334,7 +334,7 @@ class Line(VMobject):
def set_start_and_end(self, start, end):
start_to_end = self.pointify(end) - self.pointify(start)
vect = np.zeros(len(start_to_end))
longer_dim = np.argmax(map(abs, start_to_end))
longer_dim = np.argmax(list(map(abs, start_to_end)))
vect[longer_dim] = start_to_end[longer_dim]
self.start, self.end = [
arg.get_edge_center(unit * vect)
@ -495,7 +495,7 @@ class Arrow(Line):
}
def __init__(self, *args, **kwargs):
points = map(self.pointify, args)
points = list(map(self.pointify, args))
if len(args) == 1:
args = (points[0] + UP + LEFT, points[0])
Line.__init__(self, *args, **kwargs)