Modernize Python 2 code to get ready for Python 3 yet again

This commit is contained in:
cclauss
2018-06-02 08:59:26 -04:00
parent 1d23a01a3a
commit f03268d007
121 changed files with 773 additions and 698 deletions

View File

@ -1634,7 +1634,7 @@ class MusicExample(SampleSpaceScene, PiCreatureScene):
randy = self.pi_creature
friends = VGroup(*[
PiCreature(mode = "happy", color = color).flip()
for color in BLUE_B, GREY_BROWN, MAROON_E
for color in (BLUE_B, GREY_BROWN, MAROON_E)
])
friends.scale(0.6)
friends.arrange_submobjects(RIGHT)