mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-01 08:23:47 +03:00
generator: Fix undefined variables file
generator.py:931:15: F821 undefined name 'file' generator.py:951:15: F821 undefined name 'file' Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@@ -928,7 +928,7 @@ def buildStubs(module, api_xml):
|
||||
parser.close()
|
||||
except IOError:
|
||||
msg = sys.exc_info()[1]
|
||||
print(file, ":", msg)
|
||||
print(api_xml, ":", msg)
|
||||
sys.exit(1)
|
||||
|
||||
n = len(list(funcs.keys()))
|
||||
@@ -948,7 +948,7 @@ def buildStubs(module, api_xml):
|
||||
parser.close()
|
||||
except IOError:
|
||||
msg = sys.exc_info()[1]
|
||||
print(file, ":", msg)
|
||||
print(override_api_xml, ":", msg)
|
||||
|
||||
if not quiet:
|
||||
# XXX: This is not right, same function already in @functions
|
||||
|
||||
Reference in New Issue
Block a user