1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-11-23 04:23:46 +03:00

generator: Fixed writing cached=None

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-20 15:03:50 +01:00
committed by Jano Tomko
parent 88e668c64c
commit 3b9ef6ecad

View File

@@ -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()