From 1197e5fb6d37aef7c57872df71d42ebf1785fd53 Mon Sep 17 00:00:00 2001 From: Baime Date: Fri, 23 Mar 2018 18:19:31 +0100 Subject: [PATCH] fix py 3.x versioneer issue --- src/wormhole/wormhole.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wormhole/wormhole.py b/src/wormhole/wormhole.py index 11ff7cc..c1bda16 100644 --- a/src/wormhole/wormhole.py +++ b/src/wormhole/wormhole.py @@ -231,7 +231,11 @@ def create(appid, relay_url, reactor, # use keyword args for everything else w = _DeferredWormhole(eq) wormhole_versions = {} # will be used to indicate Wormhole capabilities wormhole_versions["app_versions"] = versions # app-specific capabilities - client_version = ("python", __version__.decode("utf-8", errors="replace")) + if (type(__version__) == str): + client_version = ("python", __version__) + else: + client_version = ("python", __version__.decode("utf-8", errors="replace")) + b = Boss(w, side, relay_url, appid, wormhole_versions, client_version, reactor, journal, tor, timing) w._set_boss(b)