public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>,
	Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t] python: Stop using cElementTree
Date: Wed, 3 Jun 2020 11:15:32 +0300	[thread overview]
Message-ID: <20200603081532.969938-1-arkadiusz.hiler@intel.com> (raw)

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 <petri.latvala@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
 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

             reply	other threads:[~2020-06-03  8:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03  8:15 Arkadiusz Hiler [this message]
2020-06-03  8:37 ` [igt-dev] [PATCH i-g-t] python: Stop using cElementTree Petri Latvala
2020-06-03  9:00 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2020-06-03  9:05   ` Petri Latvala
2020-06-03 10:52     ` Vudum, Lakshminarayana
2020-06-03  9:18 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2020-06-03 11:24 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-06-03 11:29   ` Arkadiusz Hiler
2020-06-03 12:05     ` Vudum, Lakshminarayana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200603081532.969938-1-arkadiusz.hiler@intel.com \
    --to=arkadiusz.hiler@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=lionel.g.landwerlin@linux.intel.com \
    --cc=petri.latvala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox