more flake8 fixes, in wormhole.py and _interfaces.py

This commit is contained in:
Brian Warner 2018-06-30 16:24:28 -07:00
parent bf0c93eddc
commit 5f61531445
2 changed files with 14 additions and 3 deletions

View File

@ -434,15 +434,26 @@ class IInputHelper(Interface):
class IJournal(Interface): # TODO: this needs to be public class IJournal(Interface): # TODO: this needs to be public
pass pass
class IDilator(Interface): class IDilator(Interface):
pass pass
class IDilationManager(Interface): class IDilationManager(Interface):
pass pass
class IDilationConnector(Interface): class IDilationConnector(Interface):
pass pass
class ISubChannel(Interface): class ISubChannel(Interface):
pass pass
class IInbound(Interface): class IInbound(Interface):
pass pass
class IOutbound(Interface): class IOutbound(Interface):
pass pass

View File

@ -191,7 +191,7 @@ class _DeferredWormhole(object):
return derive_key(self._key, to_bytes(purpose), length) return derive_key(self._key, to_bytes(purpose), length)
def dilate(self): def dilate(self):
return self._boss.dilate() # fires with (endpoints) return self._boss.dilate() # fires with (endpoints)
def close(self): def close(self):
# fails with WormholeError unless we established a connection # fails with WormholeError unless we established a connection
@ -273,8 +273,8 @@ def create(
wormhole_versions = { wormhole_versions = {
"can-dilate": [1], "can-dilate": [1],
"dilation-abilities": Connector.get_connection_abilities(), "dilation-abilities": Connector.get_connection_abilities(),
} }
wormhole_versions["app_versions"] = versions # app-specific capabilities wormhole_versions["app_versions"] = versions # app-specific capabilities
v = __version__ v = __version__
if isinstance(v, type(b"")): if isinstance(v, type(b"")):
v = v.decode("utf-8", errors="replace") v = v.decode("utf-8", errors="replace")