mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-03 16:23:46 +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()
|
parser.close()
|
||||||
except IOError:
|
except IOError:
|
||||||
msg = sys.exc_info()[1]
|
msg = sys.exc_info()[1]
|
||||||
print(file, ":", msg)
|
print(api_xml, ":", msg)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
n = len(list(funcs.keys()))
|
n = len(list(funcs.keys()))
|
||||||
@@ -948,7 +948,7 @@ def buildStubs(module, api_xml):
|
|||||||
parser.close()
|
parser.close()
|
||||||
except IOError:
|
except IOError:
|
||||||
msg = sys.exc_info()[1]
|
msg = sys.exc_info()[1]
|
||||||
print(file, ":", msg)
|
print(override_api_xml, ":", msg)
|
||||||
|
|
||||||
if not quiet:
|
if not quiet:
|
||||||
# XXX: This is not right, same function already in @functions
|
# XXX: This is not right, same function already in @functions
|
||||||
|
|||||||
Reference in New Issue
Block a user