mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	utils/misc: remove unused to_identifier
This has been moved to devlib, but, it appears, never removed from WA.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							8466b77d5b
						
					
				
				
					commit
					e3b3799737
				
			| @@ -290,14 +290,6 @@ class LoadSyntaxError(Exception): | ||||
|  | ||||
|  | ||||
| RAND_MOD_NAME_LEN = 30 | ||||
| BAD_CHARS = string.punctuation + string.whitespace | ||||
| TRANS_TABLE = string.maketrans(BAD_CHARS, '_' * len(BAD_CHARS)) | ||||
|  | ||||
|  | ||||
| def to_identifier(text): | ||||
|     """Converts text to a valid Python identifier by replacing all | ||||
|     whitespace and punctuation.""" | ||||
|     return re.sub('_+', '_', text.translate(TRANS_TABLE)) | ||||
|  | ||||
|  | ||||
| def load_struct_from_python(filepath=None, text=None): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user