summaryrefslogtreecommitdiff
path: root/tools/checker/common/mixins.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checker/common/mixins.py')
-rw-r--r--tools/checker/common/mixins.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/checker/common/mixins.py b/tools/checker/common/mixins.py
index e44c84d531..81bd2a8d83 100644
--- a/tools/checker/common/mixins.py
+++ b/tools/checker/common/mixins.py
@@ -16,11 +16,11 @@ class EqualityMixin:
""" Object equality via equality of dictionaries. """
def __eq__(self, other):
- return isinstance(other, self.__class__) \
- and self.__dict__ == other.__dict__
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
class PrintableMixin:
""" Prints object as name-dictionary pair. """
def __repr__(self):
- return '<{}: {}>'.format(type(self).__name__, str(self.__dict__))
+ return "<{}: {}>".format(type(self).__name__, str(self.__dict__))