qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/25] qapi/schema.py: remove superfluous assert


From: John Snow
Subject: [PATCH 09/25] qapi/schema.py: remove superfluous assert
Date: Tue, 22 Sep 2020 18:44:45 -0400

We'll actually get a better error message by just letting the dictionary
lookup fail.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/schema.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py
index a84d8549a4..b35f741c6f 100644
--- a/scripts/qapi/schema.py
+++ b/scripts/qapi/schema.py
@@ -892,7 +892,6 @@ def _make_module(self, fname):
 
     def module_by_fname(self, fname):
         name = self._module_name(fname)
-        assert name in self._module_dict
         return self._module_dict[name]
 
     def _def_include(self, expr, info, doc):
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]