aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/gen.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-03-04 16:59:32 +0100
committerMarkus Armbruster <armbru@redhat.com>2020-03-05 09:24:11 +0100
commit8ec0e1a4e68781f1e512af47fd6ab46ec76326e8 (patch)
tree4d41ab70f82f04c28689e62b26ff0d0763b16bb8 /scripts/qapi/gen.py
parent2cae67bcb5eab314f8e2030f04face602422bd60 (diff)
downloadqemu-8ec0e1a4e68781f1e512af47fd6ab46ec76326e8.zip
qemu-8ec0e1a4e68781f1e512af47fd6ab46ec76326e8.tar.gz
qemu-8ec0e1a4e68781f1e512af47fd6ab46ec76326e8.tar.bz2
qapi: Brush off some (py)lint
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200304155932.20452-5-armbru@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qapi/gen.py')
-rw-r--r--scripts/qapi/gen.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/qapi/gen.py b/scripts/qapi/gen.py
index e173543..33690bf 100644
--- a/scripts/qapi/gen.py
+++ b/scripts/qapi/gen.py
@@ -45,10 +45,10 @@ class QAPIGen:
def write(self, output_dir):
pathname = os.path.join(output_dir, self.fname)
- dir = os.path.dirname(pathname)
- if dir:
+ odir = os.path.dirname(pathname)
+ if odir:
try:
- os.makedirs(dir)
+ os.makedirs(odir)
except os.error as e:
if e.errno != errno.EEXIST:
raise
@@ -261,6 +261,9 @@ class QAPISchemaModularCVisitor(QAPISchemaVisitor):
genc.write(output_dir)
genh.write(output_dir)
+ def _begin_system_module(self, name):
+ pass
+
def _begin_user_module(self, name):
pass