From 7a0db1899c14373d08e04a98f5d47e872ced02db Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Tue, 29 Aug 2017 09:39:24 +0200 Subject: [PATCH] #685: Warn about Python 2 only on Python 2 --- thefuck/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thefuck/main.py b/thefuck/main.py index 454b4d2..3872175 100644 --- a/thefuck/main.py +++ b/thefuck/main.py @@ -52,8 +52,9 @@ def main(): elif known_args.command: fix_command(known_args) elif known_args.alias: - warn("The Fuck will drop Python 2 support soon, more details " - "https://github.com/nvbn/thefuck/issues/685") + if six.PY2: + warn("The Fuck will drop Python 2 support soon, more details " + "https://github.com/nvbn/thefuck/issues/685") if known_args.enable_experimental_instant_mode: if six.PY2: