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

generator: Remove dead variable assignments

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-20 10:09:19 +01:00
committed by Jano Tomko
parent 8b8b394555
commit 3b85ec54c9

View File

@@ -1149,7 +1149,6 @@ def is_python_noninteger_type(name):
def nameFixup(name, classe, type, file):
# avoid a disastrous clash
listname = classe + "List"
ll = len(listname)
l = len(classe)
if name[0:l] == listname:
func = name[l:]
@@ -1839,7 +1838,6 @@ def buildWrappers(module):
classes.write("\n")
# Append "<classname>.py" to class def, iff it exists
try:
wantfuncs = []
extra = open("libvirt-override-" + classname + ".py", "r")
classes.write(" #\n")
classes.write(" # %s methods from %s.py (hand coded)\n" % (classname, classname))