public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] python: Stop using cElementTree
@ 2020-06-03  8:15 Arkadiusz Hiler
  2020-06-03  8:37 ` Petri Latvala
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Arkadiusz Hiler @ 2020-06-03  8:15 UTC (permalink / raw)
  To: igt-dev; +Cc: Lionel Landwerlin, Petri Latvala

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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-03 12:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-03  8:15 [igt-dev] [PATCH i-g-t] python: Stop using cElementTree Arkadiusz Hiler
2020-06-03  8:37 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox