unbreak other tests
This commit is contained in:
parent
53a911cc80
commit
e82d705764
|
@ -124,9 +124,15 @@ class Input(object):
|
|||
|
||||
S0_idle.upon(start, enter=S1_typing_nameplate,
|
||||
outputs=[do_start], collector=first)
|
||||
# wormholes that don't use input_code (i.e. they use allocate_code or
|
||||
# generate_code) will never start() us, but Nameplate will give us a
|
||||
# wordlist anyways (as soon as the nameplate is claimed), so handle it.
|
||||
S0_idle.upon(got_wordlist, enter=S0_idle, outputs=[record_wordlist])
|
||||
S1_typing_nameplate.upon(got_nameplates, enter=S1_typing_nameplate,
|
||||
outputs=[record_nameplates])
|
||||
# too early for got_wordlist, should never happen
|
||||
# but wormholes that *do* use input_code should not get got_wordlist
|
||||
# until after we tell Code that we got_nameplate, which is the earliest
|
||||
# it can be claimed
|
||||
S1_typing_nameplate.upon(refresh_nameplates, enter=S1_typing_nameplate,
|
||||
outputs=[do_refresh])
|
||||
S1_typing_nameplate.upon(get_nameplate_completions,
|
||||
|
|
|
@ -143,7 +143,6 @@ class RendezvousConnector(object):
|
|||
self._ws = proto
|
||||
try:
|
||||
self._tx("bind", appid=self._appid, side=self._side)
|
||||
self._C.connected()
|
||||
self._N.connected()
|
||||
self._M.connected()
|
||||
self._L.connected()
|
||||
|
@ -183,7 +182,6 @@ class RendezvousConnector(object):
|
|||
def ws_close(self, wasClean, code, reason):
|
||||
self._debug("R.lost")
|
||||
self._ws = None
|
||||
self._C.lost()
|
||||
self._N.lost()
|
||||
self._M.lost()
|
||||
self._L.lost()
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
from __future__ import unicode_literals
|
||||
import os
|
||||
from zope.interface import implementer
|
||||
from ._interfaces import IWordlist
|
||||
|
||||
# The PGP Word List, which maps bytes to phonetically-distinct words. There
|
||||
# are two lists, even and odd, and encodings should alternate between then to
|
||||
|
@ -156,6 +158,7 @@ for k,both_words in raw_words.items():
|
|||
even_words_lowercase.add(even_word.lower())
|
||||
odd_words_lowercase.add(odd_word.lower())
|
||||
|
||||
@implementer(IWordlist)
|
||||
class PGPWordList(object):
|
||||
def get_completions(self, prefix):
|
||||
# start with the odd words
|
||||
|
|
Loading…
Reference in New Issue
Block a user