summaryrefslogtreecommitdiff
path: root/generator.py
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2018-11-20 15:03:50 +0100
committerJano Tomko <jtomko@redhat.com>2020-09-01 13:26:01 +0000
commit3b9ef6ecad50bff2f2ce076bd443195b450b15b7 (patch)
tree1a47b0d637e38ce5b3ebec94869db47bc0c32cfe /generator.py
parent88e668c64ca282a8b3c4ee7b7a769fe7fcaa9914 (diff)
downloadlibvirt-python-3b9ef6ecad50bff2f2ce076bd443195b450b15b7.tar.gz
generator: Fixed writing cached=None
Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.py b/generator.py
index 8160d69..1eabb30 100755
--- a/generator.py
+++ b/generator.py
@@ -1698,7 +1698,7 @@ def buildWrappers(module):
cached.append(line)
else:
classes.write(line)
- if not shouldSkip(cached):
+ if cached is not None and not shouldSkip(cached):
classes.writelines(cached)
classes.write("\n")
extra.close()