From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2C9D89F01 for ; Wed, 3 Jun 2020 08:37:11 +0000 (UTC) Date: Wed, 3 Jun 2020 11:37:08 +0300 From: Petri Latvala Message-ID: <20200603083708.GP9497@platvala-desk.ger.corp.intel.com> References: <20200603081532.969938-1-arkadiusz.hiler@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200603081532.969938-1-arkadiusz.hiler@intel.com> Subject: Re: [igt-dev] [PATCH i-g-t] python: Stop using cElementTree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Arkadiusz Hiler Cc: igt-dev@lists.freedesktop.org, Lionel Landwerlin List-ID: On Wed, Jun 03, 2020 at 11:15:32AM +0300, Arkadiusz Hiler wrote: > It got removed in Python 3.9 and ever since Python 3.3 it's: > from xml.etree.ElementTree import * > > Link: https://docs.python.org/3.9/whatsnew/3.9.html#removed > Issue: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/86#note_520308 > > Cc: Petri Latvala > Cc: Lionel Landwerlin > Signed-off-by: Arkadiusz Hiler Reviewed-by: Petri Latvala > --- > docs/reference/igt-gpu-tools/generate_description_xml.py | 2 +- > lib/i915/perf-configs/codegen.py | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/docs/reference/igt-gpu-tools/generate_description_xml.py b/docs/reference/igt-gpu-tools/generate_description_xml.py > index 8bb0989a..714590f8 100755 > --- a/docs/reference/igt-gpu-tools/generate_description_xml.py > +++ b/docs/reference/igt-gpu-tools/generate_description_xml.py > @@ -4,7 +4,7 @@ import re > import sys > import os.path > import subprocess > -import xml.etree.cElementTree as ET > +import xml.etree.ElementTree as ET > > from collections import namedtuple > > diff --git a/lib/i915/perf-configs/codegen.py b/lib/i915/perf-configs/codegen.py > index 88981d73..5f028c22 100644 > --- a/lib/i915/perf-configs/codegen.py > +++ b/lib/i915/perf-configs/codegen.py > @@ -1,4 +1,4 @@ > -import xml.etree.cElementTree as et > +import xml.etree.ElementTree as et > > class Codegen: > > -- > 2.25.4 > _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev