aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/diff.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-05-09 21:56:10 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-05-09 21:56:10 +0000
commitbb04137c9c04edee3c48a98682d5714a08d9de47 (patch)
treeb21a4cb74e87afb20450a347b0688e54bba97654 /libbe/diff.py
parentf72535d9a4d1e8143b0ae68e097adef2dabc73bf (diff)
downloadbugseverywhere-bb04137c9c04edee3c48a98682d5714a08d9de47.tar.gz
Slight refactoring
Diffstat (limited to 'libbe/diff.py')
-rw-r--r--libbe/diff.py4
1 files 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]))