Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97d8729

Browse files
committed
probable fix for a bug reported by m4l1c3 (RuntimeError: maximum recursion depth exceeded)
1 parent 52ba3c2 commit 97d8729

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/option.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ def __contains__(self, name):
329329
if retVal is None:
330330
retVal = DictObject()
331331

332-
for node in node.findall("./"):
332+
for child in node.findall("./"):
333333
instance = DictObject()
334-
retVal.__dict__[node.tag] = instance
335-
if node.attrib:
336-
instance.__dict__.update(node.attrib)
334+
retVal.__dict__[child.tag] = instance
335+
if child.attrib:
336+
instance.__dict__.update(child.attrib)
337337
else:
338-
iterate(node, instance)
338+
iterate(child, instance)
339339

340340
return retVal
341341

0 commit comments

Comments
 (0)