Skip to content

Commit

Permalink
#685: Warn about Python 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nvbn committed Aug 28, 2017
1 parent bf3c168 commit 3472026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thefuck/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +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 known_args.enable_experimental_instant_mode:
if six.PY2:
warn("Instant mode not supported with Python 2")
Expand Down

2 comments on commit 3472026

@firetech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this warning print only when running in Python 2? I'm quite sure I'm running thefuck in Python 3, but I still get this warning (and the code looks like it will warn no matter what).

@nvbn
Copy link
Owner Author

@nvbn nvbn commented on 3472026 Aug 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@firetech thanks, fixed

Please sign in to comment.