tuse stdout in print_msg - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 6824179eea1d5ab3ca3e0b81b669006938b44bd6
DIR parent 72b4ac97d08a32050fce4be750310be1a7be81cf
HTML Author: thomasv <thomasv@gitorious>
Date: Tue, 18 Dec 2012 11:56:27 +0100
use stdout in print_msg
Diffstat:
M lib/util.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
DIR diff --git a/lib/util.py b/lib/util.py
t@@ -58,13 +58,15 @@ def set_verbosity(b):
def print_error(*args):
if not is_verbose: return
- print_msg(*args)
+ args = [str(item) for item in args]
+ sys.stderr.write(" ".join(args) + "\n")
+ sys.stderr.flush()
def print_msg(*args):
# Stringify args
args = [str(item) for item in args]
- sys.stderr.write(" ".join(args) + "\n")
- sys.stderr.flush()
+ sys.stdout.write(" ".join(args) + "\n")
+ sys.stdout.flush()
def user_dir():