mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Unbreak gen_x86_insn.py on Python 2.4.
Patch by: Alexei Svitkine <alexei.svitkine@gmail.com> svn path=/trunk/yasm/; revision=2242
This commit is contained in:
parent
4db0d17f64
commit
9f91d82b07
1 changed files with 4 additions and 1 deletions
|
|
@ -608,7 +608,10 @@ def output_groups(f):
|
|||
# Merge all operand lists into single list
|
||||
# Sort by number of operands to shorten output
|
||||
all_operands = []
|
||||
gi = groups.itervalues() if version_info[0] == 2 else groups.values()
|
||||
if version_info[0] == 2:
|
||||
gi = groups.itervalues()
|
||||
else:
|
||||
gi = groups.values()
|
||||
for form in sorted((form for g in gi for form in g),
|
||||
key=lambda x:len(x.operands), reverse=True):
|
||||
num_operands = len(form.operands)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue