From 57c0894774fc76e2a54ad2902a4229c56c3ed50b Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 17 Dec 2016 17:32:12 -0800 Subject: [PATCH] cmd_send: flush args.stdout, in case it's different --- src/wormhole/cli/cmd_send.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/cli/cmd_send.py b/src/wormhole/cli/cmd_send.py index 24d9b1c..958f794 100644 --- a/src/wormhole/cli/cmd_send.py +++ b/src/wormhole/cli/cmd_send.py @@ -85,7 +85,7 @@ class Sender: if not args.zeromode: print(u"Wormhole code is: %s" % code, file=args.stdout) # flush stdout so the code is displayed immediately - sys.stdout.flush() + args.stdout.flush() print(u"", file=args.stdout) yield w.establish_key()