mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	#678: Import pkg_resources only when it needed
				
					
				
			This commit is contained in:
		| @@ -1,6 +1,5 @@ | ||||
| import os | ||||
| import pickle | ||||
| import pkg_resources | ||||
| import re | ||||
| import shelve | ||||
| import six | ||||
| @@ -255,6 +254,8 @@ cache.disabled = False | ||||
|  | ||||
|  | ||||
| def get_installation_info(): | ||||
|     import pkg_resources | ||||
|  | ||||
|     return pkg_resources.require('thefuck')[0] | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user