Skip to content

Commit 0d8b254

Browse files
hugovkBoboTiG
authored andcommitted
Upgrade Python syntax with pyupgrade --py3-plus
1 parent cc83531 commit 0d8b254

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/source/examples/custom_cls_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import mss
1010

1111

12-
class SimpleScreenShot(object):
12+
class SimpleScreenShot:
1313
"""
1414
Define your own custom method to deal with screen shot raw data.
1515
Of course, you can inherit from the ScreenShot class and change

mss/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .tools import to_png
1212

1313

14-
class MSSMixin(object):
14+
class MSSMixin:
1515
""" This class will be overloaded by a system specific one. """
1616

1717
cls_image = ScreenShot # type: object

mss/exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ class ScreenShotError(Exception):
1010

1111
def __init__(self, message, details=None):
1212
# type: (Dict[str, Any]) -> None
13-
super(ScreenShotError, self).__init__(message)
13+
super().__init__(message)
1414
self.details = details or {}

mss/screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Size = collections.namedtuple("Size", "width, height")
1414

1515

16-
class ScreenShot(object):
16+
class ScreenShot:
1717
"""
1818
Screen shot object.
1919

tests/test_cls_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33

4-
class SimpleScreenShot(object):
4+
class SimpleScreenShot:
55
def __init__(self, data, monitor, **kwargs):
66
self.raw = bytes(data)
77
self.monitor = monitor

0 commit comments

Comments
 (0)