In the twisted-style code, the close_on_error() decorator forces the return value to be a Deferred, which is all wrong for internal uses of derive_key() (verification string and confirmation message). It might be useful to have a synchronous form of close_on_error(), but since the actual close() is async, that's not very straightforward. So for now, tolerate unclosed Wormhole objects when someone calls derive_key() too early, or with a non-unicode type string. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| demo.py | ||
| eventsource_twisted.py | ||
| transcribe.py | ||
| util.py | ||