Skip to content

Commit 5ae53c8

Browse files
committed
bug fix of controlflow_analyzer for recent python
1 parent 1d42c1b commit 5ae53c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyverilog/controlflow/controlflow_analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def getFuncdict(self, termname, delaycnt=0):
8888
tree = self.makeTree(termname)
8989
funcdict = splitter.split(tree)
9090
funcdict = splitter.remove_reset_condition(funcdict)
91-
if len(funcdict) == 1 and len(funcdict.keys()[0]) == 0:
92-
next_term = funcdict.values()[0]
91+
if len(funcdict) == 1 and len(list(funcdict.keys())[0]) == 0:
92+
next_term = list(funcdict.values())[0]
9393
if isinstance(next_term, DFTerminal):
9494
return self.getFuncdict(next_term.name, delaycnt + 1)
9595
return funcdict, delaycnt

0 commit comments

Comments
 (0)