mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
After running 2to3
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user