Python 3 syntax compatibility

This commit is contained in:
Jean-Paul Calderone 2019-06-26 15:48:54 -04:00
parent 58db131787
commit 8516459fa3

View File

@ -1,6 +1,8 @@
import os, sys import os, sys
import mock import mock
from functools import (
partial,
)
import attr import attr
import twisted import twisted
@ -1284,10 +1286,7 @@ introducer.furl = pb://abcde@nowhere/fake
self.assertThat( self.assertThat(
defer.gatherResults([node_a, node_b]), defer.gatherResults([node_a, node_b]),
succeeded(AfterPreprocessing( succeeded(AfterPreprocessing(
lambda (a, b): ( partial(map, get_published_announcements),
get_published_announcements(a),
get_published_announcements(b),
),
MatchesSameElements(), MatchesSameElements(),
)), )),
) )