From 6b0311181dfbaf763e895ae5b7deec25f87fad95 Mon Sep 17 00:00:00 2001 From: lawrencebenson Date: Wed, 2 Mar 2016 23:19:22 +0100 Subject: [PATCH] Fix encoding error for Python 2 --- tests/rules/test_ln_no_hard_link.py | 2 ++ thefuck/rules/ln_no_hard_link.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rules/test_ln_no_hard_link.py b/tests/rules/test_ln_no_hard_link.py index ca212790..d882eb5a 100644 --- a/tests/rules/test_ln_no_hard_link.py +++ b/tests/rules/test_ln_no_hard_link.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + from thefuck.rules.ln_no_hard_link import match, get_new_command from tests.utils import Command diff --git a/thefuck/rules/ln_no_hard_link.py b/thefuck/rules/ln_no_hard_link.py index 422f4ed3..4df512ef 100644 --- a/thefuck/rules/ln_no_hard_link.py +++ b/thefuck/rules/ln_no_hard_link.py @@ -8,12 +8,10 @@ ln: ‘barDir’: hard link not allowed for directory """ import re -from thefuck.utils import for_app from thefuck.specific.sudo import sudo_support @sudo_support -@for_app('ln') def match(command): return (command.stderr.endswith("hard link not allowed for directory") and command.script.startswith("ln "))