cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-qapi.py-Rename-expr_eval-to-expr-in-parse_schema.patch

0a122b
From 51b573c7eea7a3bcaa7cd45c0b0ee39c6c912414 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <51b573c7eea7a3bcaa7cd45c0b0ee39c6c912414.1387369730.git.minovotn@redhat.com>
0a122b
In-Reply-To: <091eecc4fa42754760dfff393dabcc2b444e9693.1387369730.git.minovotn@redhat.com>
0a122b
References: <091eecc4fa42754760dfff393dabcc2b444e9693.1387369730.git.minovotn@redhat.com>
0a122b
From: Markus Armbruster <armbru@redhat.com>
0a122b
Date: Tue, 10 Dec 2013 15:29:18 +0100
0a122b
Subject: [PATCH 18/21] qapi.py: Rename expr_eval to expr in parse_schema()
0a122b
0a122b
RH-Author: Markus Armbruster <armbru@redhat.com>
0a122b
Message-id: <1386689361-30281-16-git-send-email-armbru@redhat.com>
0a122b
Patchwork-id: 56132
0a122b
O-Subject: [PATCH 7.0 qemu-kvm 15/18] qapi.py: Rename expr_eval to expr in parse_schema()
0a122b
Bugzilla: 997915
0a122b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
0a122b
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
0a122b
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
0a122b
0a122b
From: Markus Armbruster <armbru@redhat.com>
0a122b
0a122b
Signed-off-by: Markus Armbruster <armbru@redhat.com>
0a122b
Reviewed-by: Eric Blake <eblake@redhat.com>
0a122b
Message-id: 1374939721-7876-9-git-send-email-armbru@redhat.com
0a122b
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
0a122b
(cherry picked from commit 28b8bd4c759389bdc8430acfa588a23e4a9a7fb8)
0a122b
---
0a122b
 scripts/qapi.py | 18 +++++++++---------
0a122b
 1 file changed, 9 insertions(+), 9 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 scripts/qapi.py | 18 +++++++++---------
0a122b
 1 file changed, 9 insertions(+), 9 deletions(-)
0a122b
0a122b
diff --git a/scripts/qapi.py b/scripts/qapi.py
0a122b
index 75fc282..f64b7b2 100644
0a122b
--- a/scripts/qapi.py
0a122b
+++ b/scripts/qapi.py
0a122b
@@ -168,15 +168,15 @@ def parse_schema(fp):
0a122b
 
0a122b
     exprs = []
0a122b
 
0a122b
-    for expr_eval in schema.exprs:
0a122b
-        if expr_eval.has_key('enum'):
0a122b
-            add_enum(expr_eval['enum'])
0a122b
-        elif expr_eval.has_key('union'):
0a122b
-            add_union(expr_eval)
0a122b
-            add_enum('%sKind' % expr_eval['union'])
0a122b
-        elif expr_eval.has_key('type'):
0a122b
-            add_struct(expr_eval)
0a122b
-        exprs.append(expr_eval)
0a122b
+    for expr in schema.exprs:
0a122b
+        if expr.has_key('enum'):
0a122b
+            add_enum(expr['enum'])
0a122b
+        elif expr.has_key('union'):
0a122b
+            add_union(expr)
0a122b
+            add_enum('%sKind' % expr['union'])
0a122b
+        elif expr.has_key('type'):
0a122b
+            add_struct(expr)
0a122b
+        exprs.append(expr)
0a122b
 
0a122b
     return exprs
0a122b
 
0a122b
-- 
0a122b
1.7.11.7
0a122b