mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	list-workarounds: Convert to python3
The rest of the tool suite that uses python already uses python3. The tool configure requires python >= 3 (which is confusing because of the no backward compat problem). The world is slowly moving to python3. Converted with 2to3. Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
		
							parent
							
								
									397dcb745e
								
							
						
					
					
						commit
						0e8931925d
					
				@ -1,4 +1,4 @@
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
 | 
			
		||||
import os,sys
 | 
			
		||||
import optparse
 | 
			
		||||
@ -29,7 +29,7 @@ wa_re = re.compile('(?P<name>Wa[A-Z0-9][a-zA-Z0-9_]+):(?P<platforms>[a-z,]+)')
 | 
			
		||||
waname_re = re.compile('(?P<name>Wa[A-Z0-9][a-zA-Z0-9_]+)')
 | 
			
		||||
def parse(me):
 | 
			
		||||
	for line in me.splitlines():
 | 
			
		||||
		match = wa_re.search(line)
 | 
			
		||||
		match = wa_re.search(str(line))
 | 
			
		||||
		if not match:
 | 
			
		||||
			if not verbose:
 | 
			
		||||
				continue
 | 
			
		||||
@ -103,7 +103,7 @@ if __name__ == '__main__':
 | 
			
		||||
		sys.exit(1)
 | 
			
		||||
 | 
			
		||||
	parse(work_arounds)
 | 
			
		||||
	for wa in sorted(workarounds.iterkeys()):
 | 
			
		||||
	for wa in sorted(workarounds.keys()):
 | 
			
		||||
		if not options.platform:
 | 
			
		||||
			print("%s: %s" % (wa, ', '.join(workarounds[wa])))
 | 
			
		||||
		elif options.platform in workarounds[wa]:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user