summaryrefslogtreecommitdiff
path: root/tools/checker/common/mixins.py
diff options
context:
space:
mode:
author Daniil Riazanovskiy <riazanovskiy@google.com> 2020-10-15 00:46:06 +0000
committer Roland Levillain <rpl@google.com> 2020-10-22 17:22:18 +0000
commit4a128a1d33758b5c7b7179dd6779ae120453a94c (patch)
tree07e8c8c823b7f6dc7a49fb0408984612b50d0d46 /tools/checker/common/mixins.py
parent463d03e93071be1efe6c5b65dbf7cbbe1b793eee (diff)
Reformat Checker according to recent Google styleguide
Test: art/tools/checker/run_unit_tests.py Test: Run any Checker test with atest or mts Change-Id: I0452429fa43356d93ca748879bad14ef23609f40
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__))