Upgrade Python syntax with pyupgrade --py3-plus

This commit is contained in:
Hugo 2019-11-01 13:54:19 +02:00
parent cc63f66575
commit b4f93cf140
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from .test_imageqt import PillowQtTestCase
class TestFromQImage(PillowQtTestCase, PillowTestCase):
def setUp(self):
super(TestFromQImage, self).setUp()
super().setUp()
self.files_to_test = [
hopper(),
Image.open("Tests/images/transparent.png"),

View File

@ -5,7 +5,7 @@ from .helper import PillowTestCase
class TestImageOpsUsm(PillowTestCase):
def setUp(self):
super(TestImageOpsUsm, self).setUp()
super().setUp()
self.im = Image.open("Tests/images/hopper.ppm")
self.addCleanup(self.im.close)
self.snakes = Image.open("Tests/images/color_snakes.png")