Skip to content

Commit 2357c47

Browse files
committed
2 parents b86d608 + df5e18a commit 2357c47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugin/python/vdebug/dbgp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __str__(self):
8282
class ContextNamesResponse(Response):
8383
def names(self):
8484
names = {}
85-
for c in self.as_xml().getchildren():
85+
for c in list(self.as_xml()):
8686
names[int(c.get('id'))] = c.get('name')
8787
return names
8888

@@ -96,7 +96,7 @@ class StackGetResponse(Response):
9696
"""Response object used by the stack_get command."""
9797

9898
def get_stack(self):
99-
return self.as_xml().getchildren()
99+
return list(self.as_xml())
100100

101101
class ContextGetResponse(Response):
102102
"""Response object used by the context_get command.
@@ -109,7 +109,7 @@ def __init__(self,response,cmd,cmd_args,api):
109109
self.properties = []
110110

111111
def get_context(self):
112-
for c in self.as_xml().getchildren():
112+
for c in list(self.as_xml()):
113113
self.create_properties(ContextProperty(c))
114114

115115
return self.properties
@@ -132,7 +132,7 @@ def __init__(self,response,cmd,cmd_args,api):
132132

133133
def get_context(self):
134134
code = self.get_code()
135-
for c in self.as_xml().getchildren():
135+
for c in list(self.as_xml()):
136136
self.create_properties(EvalProperty(c,code,self.api.language))
137137

138138
return self.properties
@@ -601,7 +601,7 @@ def __init_children(self,node):
601601
if self.has_children:
602602
idx = 0
603603
tagname = '%sproperty' % self.ns
604-
children = node.getchildren()
604+
children = list(node)
605605
if children is not None:
606606
for c in children:
607607
if c.tag == tagname:

0 commit comments

Comments
 (0)