mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-11-24 08:23:46 +03:00
generator: Fixed writing cached=None
Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user