diff --git a/src/wormhole/_boss.py b/src/wormhole/_boss.py index a5cb790..a2baa97 100644 --- a/src/wormhole/_boss.py +++ b/src/wormhole/_boss.py @@ -178,7 +178,7 @@ class Boss(object): # inputs. We expect them to be called just after initialization, while # we're in the S0_empty state. You must call exactly one of them, and the # call must happen while we're in S0_empty, which makes them good - # candiates for being a proper @m.input, but set_code() will immediately + # candidates for being a proper @m.input, but set_code() will immediately # (reentrantly) cause self.got_code() to be fired, which is messy. These # are all passthroughs to the Code machine, so one alternative would be # to have Wormhole call Code.{input,allocate,set_code} instead, but that diff --git a/src/wormhole/_dilation/connection.py b/src/wormhole/_dilation/connection.py index 6c4f050..0cdbce9 100644 --- a/src/wormhole/_dilation/connection.py +++ b/src/wormhole/_dilation/connection.py @@ -607,7 +607,7 @@ class DilatedConnectionProtocol(Protocol, object): if self._role is FOLLOWER: self._record.send_record(KCM()) elif isinstance(token, KCM): - # if we're the leader, add this connection as a candiate. + # if we're the leader, add this connection as a candidate. # if we're the follower, accept this connection. self.got_kcm() # connector.add_candidate() else: diff --git a/src/wormhole/_dilation/manager.py b/src/wormhole/_dilation/manager.py index 97c9faf..6e24535 100644 --- a/src/wormhole/_dilation/manager.py +++ b/src/wormhole/_dilation/manager.py @@ -187,7 +187,7 @@ class Manager(object): # TODO: be more specific about the error. dilation_version==None # means we had no version in common with them, which could either # be because they're so old they don't dilate at all, or because - # they're so new that they no longer accomodate our old version + # they're so new that they no longer accommodate our old version self.fail(failure.Failure(OldPeerCannotDilateError())) self.start() diff --git a/src/wormhole/test/dilate/test_connection.py b/src/wormhole/test/dilate/test_connection.py index 7c014fc..abb83d3 100644 --- a/src/wormhole/test/dilate/test_connection.py +++ b/src/wormhole/test/dilate/test_connection.py @@ -124,7 +124,7 @@ class Connection(unittest.TestCase): clear_mock_calls(n, connector, t, m) # now pretend this connection wins (either the Leader decides to use - # this one among all the candiates, or we're the Follower and the + # this one among all the candidates, or we're the Follower and the # Connector is reacting to add_candidate() by recognizing we're the # only candidate there is) c.select(m) @@ -295,7 +295,7 @@ class Connection(unittest.TestCase): clear_mock_calls(n, connector, t, m) # now pretend this connection wins (either the Leader decides to use - # this one among all the candiates, or we're the Follower and the + # this one among all the candidates, or we're the Follower and the # Connector is reacting to add_candidate() by recognizing we're the # only candidate there is) c.select(m) diff --git a/src/wormhole/test/dilate/test_outbound.py b/src/wormhole/test/dilate/test_outbound.py index 7521f2d..296d785 100644 --- a/src/wormhole/test/dilate/test_outbound.py +++ b/src/wormhole/test/dilate/test_outbound.py @@ -595,7 +595,7 @@ class PretendUnregisterError(Exception): class PushPull(unittest.TestCase): # test our wrapper utility, which I copied from - # twisted.internet._producer_helpers since it isn't publically exposed + # twisted.internet._producer_helpers since it isn't publicly exposed def test_start_unpaused(self): p, unr, pp, eq = make_pushpull([True]) # pause on each resumeProducing diff --git a/src/wormhole/test/dilate/test_record.py b/src/wormhole/test/dilate/test_record.py index 252a8b0..8f8e48c 100644 --- a/src/wormhole/test/dilate/test_record.py +++ b/src/wormhole/test/dilate/test_record.py @@ -246,7 +246,7 @@ class Record(unittest.TestCase): f.mock_calls[:] = [] n.mock_calls[:] = [] - # 5: at this point we ought to be able to send a messge, the KCM + # 5: at this point we ought to be able to send a message, the KCM with mock.patch("wormhole._dilation.connection.encode_record", side_effect=[b"r-kcm"]) as er: r.send_record(kcm)