From 126194ec2ee0045efb3fe8a2ccf85087352ad04f Mon Sep 17 00:00:00 2001 From: nvbn Date: Wed, 22 Apr 2015 05:29:44 +0200 Subject: [PATCH] Put errors in stderr instead of "echo ..." in stdout --- thefuck/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/main.py b/thefuck/main.py index 3c034d8f..2cf1a2ec 100644 --- a/thefuck/main.py +++ b/thefuck/main.py @@ -139,7 +139,7 @@ def main(): command = get_command(settings, sys.argv) if command: if is_second_run(command): - print("echo Can't fuck twice") + sys.stderr.write("Can't fuck twice\n") return rules = get_rules(user_dir, settings) @@ -148,4 +148,4 @@ def main(): run_rule(matched_rule, command, settings) return - print('echo No fuck given') + sys.stderr.write('No fuck given\n')