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,6 +1,6 @@
#!/usr/bin/env python
from __future__ import absolute_import
import numpy as np
import itertools as it
from copy import deepcopy
@ -30,7 +30,7 @@ class SimpleText(Scene):
]
@staticmethod
def args_to_string(text):
return initials(filter(lambda c : c in string.letters + " ", text))
return initials([c for c in text if c in string.letters + " "])
def construct(self, text):
self.add(TextMobject(text))