Skip to content

Commit

Permalink
Few more formatting fixes
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Nov 22, 2024
1 parent c8aec89 commit 93b6bba
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions scripts/monitor_dbus_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 +504,14 @@ def __repr__(self):
)

def __str__(self):
diffs = os.linesep.join(
f" {line}"
for line in DeepDiff(self.old_value, self.new_value).pretty()
)
return (
f"Different Property:{os.linesep}"
f" {self.object_path}{os.linesep} {self.key}{os.linesep}"
f" {self.old_value!r}{os.linesep}"
f" {self.new_value!r}{os.linesep}{diffs}"
f" {self.old_value}{os.linesep}"
f" {self.new_value}{os.linesep}"
) + os.linesep.join(
f" {line}"
for line in DeepDiff(self.old_value, self.new_value).pretty()
)

class NotInvalidatedProperty(Diff): # pylint: disable=too-few-public-methods
Expand Down Expand Up @@ -568,15 +567,13 @@ def __repr__(self):
)

def __str__(self):
diffs = os.linesep.join(
f" {line}"
for line in DeepDiff(self.old_value, self.new_value).pretty()
)
return (
f"Changed Property:{os.linesep} {self.object_path}{os.linesep}"
f" {self.interface_name}{os.linesep} {self.key}{os.linesep}"
f" {self.old_value}{os.linesep} {self.new_value}{os.linesep}"
f"{diffs}"
) + os.linesep.join(
f" {line}"
for line in DeepDiff(self.old_value, self.new_value).pretty()
)

class RemovedObjectPath(Diff): # pylint: disable=too-few-public-methods
Expand Down

0 comments on commit 93b6bba

Please sign in to comment.