Skip to content

Commit 80d0193

Browse files
authored
Merge pull request #24 from trailofbits/remove-raise-stop-iteration
Change raise StopIteration to return
2 parents 0a9287c + 4357499 commit 80d0193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyevmasm/evmasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def disassemble_all(bytecode, pc=0):
681681
while True:
682682
instr = disassemble_one(bytecode, pc=pc)
683683
if not instr:
684-
raise StopIteration
684+
return
685685
pc += instr.size
686686
yield instr
687687

0 commit comments

Comments
 (0)