From 5f61531445df878f06edcb49bc59a8cb571f83cc Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 30 Jun 2018 16:24:28 -0700 Subject: [PATCH] more flake8 fixes, in wormhole.py and _interfaces.py --- src/wormhole/_interfaces.py | 11 +++++++++++ src/wormhole/wormhole.py | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/wormhole/_interfaces.py b/src/wormhole/_interfaces.py index 52bde35..15302d1 100644 --- a/src/wormhole/_interfaces.py +++ b/src/wormhole/_interfaces.py @@ -434,15 +434,26 @@ class IInputHelper(Interface): class IJournal(Interface): # TODO: this needs to be public pass + class IDilator(Interface): pass + + class IDilationManager(Interface): pass + + class IDilationConnector(Interface): pass + + class ISubChannel(Interface): pass + + class IInbound(Interface): pass + + class IOutbound(Interface): pass diff --git a/src/wormhole/wormhole.py b/src/wormhole/wormhole.py index f967c25..3734fd2 100644 --- a/src/wormhole/wormhole.py +++ b/src/wormhole/wormhole.py @@ -191,7 +191,7 @@ class _DeferredWormhole(object): return derive_key(self._key, to_bytes(purpose), length) def dilate(self): - return self._boss.dilate() # fires with (endpoints) + return self._boss.dilate() # fires with (endpoints) def close(self): # fails with WormholeError unless we established a connection @@ -273,8 +273,8 @@ def create( wormhole_versions = { "can-dilate": [1], "dilation-abilities": Connector.get_connection_abilities(), - } - wormhole_versions["app_versions"] = versions # app-specific capabilities + } + wormhole_versions["app_versions"] = versions # app-specific capabilities v = __version__ if isinstance(v, type(b"")): v = v.decode("utf-8", errors="replace")