From 0e8931925d725317d34bfbe0ba48b52b67ec7859 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Fri, 10 May 2013 15:25:49 -0700 Subject: 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 Reviewed-by: Kenneth Graunke Signed-off-by: Ben Widawsky --- scripts/list-workarounds | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/list-workarounds') diff --git a/scripts/list-workarounds b/scripts/list-workarounds index 6c8c636a..687e0e17 100755 --- a/scripts/list-workarounds +++ b/scripts/list-workarounds @@ -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('(?PWa[A-Z0-9][a-zA-Z0-9_]+):(?P[a-z,]+)') waname_re = re.compile('(?PWa[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]: -- cgit v1.2.3