mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Merge pull request #9 from alexnastetsky/master
Fixed UnicodeDecodeError
This commit is contained in:
		| @@ -57,8 +57,8 @@ def get_command(args): | |||||||
|     """Creates command from `args` and executes it.""" |     """Creates command from `args` and executes it.""" | ||||||
|     script = ' '.join(args[1:]) |     script = ' '.join(args[1:]) | ||||||
|     result = Popen(script, shell=True, stdout=PIPE, stderr=PIPE) |     result = Popen(script, shell=True, stdout=PIPE, stderr=PIPE) | ||||||
|     return Command(script, result.stdout.read().decode(), |     return Command(script, result.stdout.read().decode('utf-8'), | ||||||
|                    result.stderr.read().decode()) |                    result.stderr.read().decode('utf-8')) | ||||||
|  |  | ||||||
|  |  | ||||||
| def get_matched_rule(command, rules, settings): | def get_matched_rule(command, rules, settings): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user