From 0322d341e8b9a9954867b6614c571af782342b94 Mon Sep 17 00:00:00 2001 From: Baeumla Date: Fri, 9 Mar 2018 09:31:59 +0100 Subject: [PATCH] py 2.7 fix --- src/wormhole/wormhole.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wormhole/wormhole.py b/src/wormhole/wormhole.py index 12a9c7e..e65003c 100644 --- a/src/wormhole/wormhole.py +++ b/src/wormhole/wormhole.py @@ -231,10 +231,12 @@ def create(appid, relay_url, reactor, # use keyword args for everything else wormhole_versions = {} # will be used to indicate Wormhole capabilities wormhole_versions["app_versions"] = versions # app-specific capabilities #version to be sent with bind if provided + wormhole_version = u"" if type(versions) is dict and versions != {} : wormhole_version = list(versions.values())[0] or "" else: wormhole_version = versions or "" + wormhole_version = wormhole_version.decode('unicode-escape') implementation = "python" b = Boss(w, side, relay_url, appid, wormhole_versions, wormhole_version, reactor, journal, tor, timing, implementation)