1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-20 20:09:07 +00:00

Fix encoding error for Python 2

This commit is contained in:
lawrencebenson 2016-03-02 23:19:22 +01:00
parent 48808f93ac
commit 6b0311181d
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from thefuck.rules.ln_no_hard_link import match, get_new_command
from tests.utils import Command

View File

@ -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 "))