From bb04137c9c04edee3c48a98682d5714a08d9de47 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Mon, 9 May 2005 21:56:10 +0000 Subject: [PATCH] Slight refactoring --- libbe/diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbe/diff.py b/libbe/diff.py index 70bda69..a0e43a2 100644 --- a/libbe/diff.py +++ b/libbe/diff.py @@ -60,7 +60,7 @@ def change_lines(old, new, attributes): old_attr = getattr(old, attr) new_attr = getattr(new, attr) if old_attr != new_attr: - change_list.append("%s: %s -> %s" % (attr, old_attr, new_attr)) + change_list.append((attr, old_attr, new_attr)) if len(change_list) >= 0: return change_list else: @@ -72,6 +72,6 @@ def bug_changes(old, new, bugs): if len(change_list) == 0: return None return "%s%s\n" % (cmdutil.bug_summary(new, bugs, shortlist=True), - "\n".join(change_list)) + "\n".join(["%s: %s -> %s" % f for f in change_list])) -- 2.26.2