blob: 2ae4dc1673d9af65cd09f20353efc0d4b20d0850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-src_mapi_glapi_gen_glX__XML.py,v 1.1 2021/01/06 15:50:02 triaxx Exp $
Remove deprecated .getchildren() that are no longer supported in Python 3.9.
https://cgit.freedesktop.org/mesa/mesa/commit/src/mapi/glapi/gen/glX_XML.py?id=7a680
--- src/mapi/glapi/gen/glX_XML.py.orig 2021-01-06 15:15:12.263181000 +0100
+++ src/mapi/glapi/gen/glX_XML.py
@@ -48,7 +48,7 @@
self.functions = {}
- for child in element.getchildren():
+ for child in element:
if child.tag == "size":
n = child.get( "name" )
c = child.get( "count" )
@@ -130,7 +130,7 @@
self.counter_list.append(param.counter)
- for child in element.getchildren():
+ for child in element:
if child.tag == "glx":
rop = child.get( 'rop' )
sop = child.get( 'sop' )
|