mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Upgrade Python syntax with pyupgrade --py3-plus
This commit is contained in:
parent
cc63f66575
commit
b4f93cf140
|
@ -6,7 +6,7 @@ from .test_imageqt import PillowQtTestCase
|
||||||
|
|
||||||
class TestFromQImage(PillowQtTestCase, PillowTestCase):
|
class TestFromQImage(PillowQtTestCase, PillowTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestFromQImage, self).setUp()
|
super().setUp()
|
||||||
self.files_to_test = [
|
self.files_to_test = [
|
||||||
hopper(),
|
hopper(),
|
||||||
Image.open("Tests/images/transparent.png"),
|
Image.open("Tests/images/transparent.png"),
|
||||||
|
|
|
@ -5,7 +5,7 @@ from .helper import PillowTestCase
|
||||||
|
|
||||||
class TestImageOpsUsm(PillowTestCase):
|
class TestImageOpsUsm(PillowTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestImageOpsUsm, self).setUp()
|
super().setUp()
|
||||||
self.im = Image.open("Tests/images/hopper.ppm")
|
self.im = Image.open("Tests/images/hopper.ppm")
|
||||||
self.addCleanup(self.im.close)
|
self.addCleanup(self.im.close)
|
||||||
self.snakes = Image.open("Tests/images/color_snakes.png")
|
self.snakes = Image.open("Tests/images/color_snakes.png")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user