From d0a7da3a6378ebc33b9355d2c184befde24d998e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 6 Oct 2015 20:33:17 -0700 Subject: [PATCH] twisted/demo.py: fix receive, code must be unicode --- src/wormhole/twisted/demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/twisted/demo.py b/src/wormhole/twisted/demo.py index 75b3825..6f2947f 100644 --- a/src/wormhole/twisted/demo.py +++ b/src/wormhole/twisted/demo.py @@ -28,7 +28,7 @@ if sys.argv[1] == "send": print("error sending text: %r" % (them_d,)) d.addCallback(_got_data) elif sys.argv[1] == "receive": - code = sys.argv[2] + code = sys.argv[2].decode("utf-8") w.set_code(code) d = w.get_data() def _got_data(them_bytes):