We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f01a81 + 9178682 commit 0243756Copy full SHA for 0243756
pyevmasm/evmasm.py
@@ -680,11 +680,11 @@ def __contains__(self, k):
680
return k in self._instruction_list or k in self._name_to_opcode
681
682
def __iter__(self):
683
- for k, i in self._instruction_list.items():
684
- yield Instruction(*((k,)+ i))
+ for k in self.keys():
+ yield Instruction(*((k,)+ self._instruction_list[k]))
685
686
def keys(self):
687
- return self._instruction_list.keys()
+ return sorted(self._instruction_list.keys())
688
689
def __repr__(self):
690
return repr(self._instruction_list)
0 commit comments