qapi.py: Rename expr_eval to expr in parse_schema()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1374939721-7876-9-git-send-email-armbru@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
5f3cd2b717
commit
28b8bd4c75
|
@ -168,15 +168,15 @@ def parse_schema(fp):
|
||||||
|
|
||||||
exprs = []
|
exprs = []
|
||||||
|
|
||||||
for expr_eval in schema.exprs:
|
for expr in schema.exprs:
|
||||||
if expr_eval.has_key('enum'):
|
if expr.has_key('enum'):
|
||||||
add_enum(expr_eval['enum'])
|
add_enum(expr['enum'])
|
||||||
elif expr_eval.has_key('union'):
|
elif expr.has_key('union'):
|
||||||
add_union(expr_eval)
|
add_union(expr)
|
||||||
add_enum('%sKind' % expr_eval['union'])
|
add_enum('%sKind' % expr['union'])
|
||||||
elif expr_eval.has_key('type'):
|
elif expr.has_key('type'):
|
||||||
add_struct(expr_eval)
|
add_struct(expr)
|
||||||
exprs.append(expr_eval)
|
exprs.append(expr)
|
||||||
|
|
||||||
return exprs
|
return exprs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue