mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Fixer for basestring -> str."""
 | |
| # Author: Christian Heimes
 | |
| 
 | |
| # Local imports
 | |
| from . import basefix
 | |
| from .util import Name
 | |
| 
 | |
| class FixBasestring(basefix.BaseFix):
 | |
| 
 | |
|     PATTERN = "'basestring'"
 | |
| 
 | |
|     def transform(self, node, results):
 | |
|         return Name("str", prefix=node.get_prefix())
 | 
