Merge lp:~benji/testtools/fix-python-3-compatability into lp:~testtools-committers/testtools/trunk

Proposed by Benji York
Status: Merged
Merged at revision: 255
Proposed branch: lp:~benji/testtools/fix-python-3-compatability
Merge into: lp:~testtools-committers/testtools/trunk
Diff against target: 13 lines (+2/-1)
1 file modified
testtools/testresult/real.py (+2/-1)
To merge this branch: bzr merge lp:~benji/testtools/fix-python-3-compatability
Reviewer Review Type Date Requested Status
testtools committers Pending
Review via email: mp+103152@code.launchpad.net

Commit message

restore Python 3 compatability

Description of the change

Restore Python 3 compatibility by avoiding the use of a beautiful Python feature that was removed in Python 3.

To post a comment you must log in.
256. By Benji York

use a better name

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'testtools/testresult/real.py'
--- testtools/testresult/real.py 2012-04-19 12:08:12 +0000
+++ testtools/testresult/real.py 2012-04-23 19:00:26 +0000
@@ -483,7 +483,8 @@
483 self._global_tags, (new_tags, gone_tags))483 self._global_tags, (new_tags, gone_tags))
484484
485485
486def _merge_tags(existing, (new_tags, gone_tags)):486def _merge_tags(existing, changed):
487 new_tags, gone_tags = changed
487 result_new = set(existing[0])488 result_new = set(existing[0])
488 result_gone = set(existing[1])489 result_gone = set(existing[1])
489 result_new.update(new_tags)490 result_new.update(new_tags)

Subscribers

People subscribed via source and target branches