Correct spelling mistakes

This commit is contained in:
Edward Betts 2020-02-20 11:13:36 +00:00
parent f566fae439
commit 6477f239e8
6 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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:

View File

@ -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()

View File

@ -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)

View File

@ -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

View File

@ -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)