mirror of
				https://github.com/clearml/clearml-agent
				synced 2025-06-26 18:16:15 +00:00 
			
		
		
		
	Fix pip requirements print dump should be sorted
This commit is contained in:
		
							parent
							
								
									d32b82cb01
								
							
						
					
					
						commit
						4219835aa1
					
				| @ -315,13 +315,12 @@ def _dump_flat_dict(flat_dict): | ||||
|         flat_dict = {"": flat_dict} | ||||
| 
 | ||||
|     out = "" | ||||
|     for k in flat_dict.keys(): | ||||
|     for k in sorted(flat_dict.keys()): | ||||
|         out += "{}:\n".format(k) | ||||
|         values = flat_dict[k] | ||||
|         if not isinstance(values, (list, tuple)): | ||||
|             values = [values] | ||||
|         for v in values: | ||||
|             out += "- {}\n".format(v) | ||||
|         out += "".join(sorted(["- {}\n".format(v) for v in values], key=lambda t: str(t).lower())) | ||||
| 
 | ||||
|     return out | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 clearml
						clearml