From patchwork Fri May 10 22:28:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 2552341 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 5BFB8DF2A2 for ; Fri, 10 May 2013 22:26:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B30BE64D0 for ; Fri, 10 May 2013 15:26:09 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from shiva.localdomain (unknown [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 61ED4E5EB1 for ; Fri, 10 May 2013 15:25:54 -0700 (PDT) Received: by shiva.localdomain (Postfix, from userid 1005) id 5BFD788652; Fri, 10 May 2013 22:25:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on shiva.chad-versace.us X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from lundgren.kumite (c-24-21-100-90.hsd1.or.comcast.net [24.21.100.90]) by shiva.localdomain (Postfix) with ESMTPSA id A4B8288013; Fri, 10 May 2013 22:25:51 +0000 (UTC) From: Ben Widawsky To: intel-gfx@lists.freedesktop.org Date: Fri, 10 May 2013 15:28:29 -0700 Message-Id: <1368224909-1589-1-git-send-email-ben@bwidawsk.net> X-Mailer: git-send-email 1.8.2.2 Cc: Ben Widawsky Subject: [Intel-gfx] [PATCH] list-workarounds: Convert to python3 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org 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. CC: Damien Lespiau CC: Kenneth Graunke Signed-off-by: Ben Widawsky Reviewed-by: Kenneth Graunke Reviewed-by: Damien Lespiau --- scripts/list-workarounds | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/list-workarounds b/scripts/list-workarounds index 6c8c636..b874fd8 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,8 +103,8 @@ 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]))) + print(("%s: %s" % (wa, ', '.join(workarounds[wa])))) elif options.platform in workarounds[wa]: print(wa)