Skip to content

Commit fdb9e2b

Browse files
committed
Minor refactoring of Nodel.problems().
1 parent bb89e91 commit fdb9e2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mph/node.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,14 @@ def problems(self):
310310
stack = []
311311
if hasattr(java, 'problem'):
312312
for tag in java.problem().tags():
313-
stack.append( (self, java.problem(tag)) )
313+
stack.append(java.problem(tag))
314314
items = []
315315
while stack:
316-
(node, problem) = stack.pop()
316+
problem = stack.pop()
317317
item = {
318318
'message': '',
319319
'category': '',
320-
'node': node,
320+
'node': self,
321321
'selection': '',
322322
}
323323
if hasattr(problem, 'message'):
@@ -333,7 +333,7 @@ def problems(self):
333333
items.append(item)
334334
if hasattr(problem, 'problem'):
335335
for tag in problem.problem().tags():
336-
stack.append( (node, problem.problem(tag)) )
336+
stack.append(problem.problem(tag))
337337
for child in self.children():
338338
items += child.problems()
339339
return items

0 commit comments

Comments
 (0)