mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-02 20:42:30 +03:00
python: Fix file variable not defined during exception
This commit is contained in:
committed by
Nick Wellnhofer
parent
ffef921be3
commit
e26478545f
@ -683,7 +683,7 @@ def buildStubs():
|
||||
parser.feed(data)
|
||||
parser.close()
|
||||
except IOError as msg:
|
||||
print(file, ":", msg)
|
||||
print("Failed to open libxml2-api.xml:", msg)
|
||||
sys.exit(1)
|
||||
|
||||
n = len(list(functions.keys()))
|
||||
@ -697,7 +697,7 @@ def buildStubs():
|
||||
parser.feed(data)
|
||||
parser.close()
|
||||
except IOError as msg:
|
||||
print(file, ":", msg)
|
||||
print("Failed to open libxml2-python-api.xml:", msg)
|
||||
|
||||
|
||||
print("Found %d functions in libxml2-python-api.xml" % (
|
||||
|
Reference in New Issue
Block a user