mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Use pickle protocol 2.
This ensures that autojump works when the default python interpreter is changed, e.g. by virtualenv.
This commit is contained in:
		
							parent
							
								
									34419c3eae
								
							
						
					
					
						commit
						5d949f4e8a
					
				
							
								
								
									
										2
									
								
								autojump
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								autojump
									
									
									
									
									
								
							| @ -53,7 +53,7 @@ def save(path_dict, dic_file): | ||||
|     # Otherwise, fail quietly | ||||
|     if (not os.path.exists(dic_file)) or os.getuid() == os.stat(dic_file)[4]: | ||||
|         temp = NamedTemporaryFile(dir=CONFIG_DIR, delete=False) | ||||
|         pickle.dump(path_dict, temp, -1) | ||||
|         pickle.dump(path_dict, temp, 2) | ||||
|         temp.flush() | ||||
|         os.fsync(temp) | ||||
|         temp.close() | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user