py 2.7 3.x fix

This commit is contained in:
Baeumla 2018-03-09 10:20:03 +01:00
parent 0322d341e8
commit 82dc4a4e2e

View File

@ -236,6 +236,8 @@ def create(appid, relay_url, reactor, # use keyword args for everything else
wormhole_version = list(versions.values())[0] or ""
else:
wormhole_version = versions or ""
#workaround for py2.7, py3.X
if sys.version_info < (3, 0):
wormhole_version = wormhole_version.decode('unicode-escape')
implementation = "python"
b = Boss(w, side, relay_url, appid, wormhole_versions, wormhole_version,