mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	#20 Fix UnicodeDecodeError in no_command
				
					
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							| @@ -2,7 +2,7 @@ from setuptools import setup, find_packages | |||||||
|  |  | ||||||
|  |  | ||||||
| setup(name='thefuck', | setup(name='thefuck', | ||||||
|       version=1.9, |       version=1.10, | ||||||
|       description="Magnificent app which corrects your previous console command", |       description="Magnificent app which corrects your previous console command", | ||||||
|       author='Vladimir Iakovlev', |       author='Vladimir Iakovlev', | ||||||
|       author_email='nvbn.rm@gmail.com', |       author_email='nvbn.rm@gmail.com', | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ def _get_output(command, settings): | |||||||
|     name = command.script.split(' ')[command.script.startswith('sudo')] |     name = command.script.split(' ')[command.script.startswith('sudo')] | ||||||
|     check_script = '{} {}'.format(settings.command_not_found, name) |     check_script = '{} {}'.format(settings.command_not_found, name) | ||||||
|     result = Popen(check_script, shell=True, stderr=PIPE) |     result = Popen(check_script, shell=True, stderr=PIPE) | ||||||
|     return result.stderr.read().decode() |     return result.stderr.read().decode('utf-8') | ||||||
|  |  | ||||||
|  |  | ||||||
| @wrap_settings(local_settings) | @wrap_settings(local_settings) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user