mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-04 20:23:46 +03:00
generator: Remove dead variable assignments
Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@@ -1149,7 +1149,6 @@ def is_python_noninteger_type(name):
|
|||||||
def nameFixup(name, classe, type, file):
|
def nameFixup(name, classe, type, file):
|
||||||
# avoid a disastrous clash
|
# avoid a disastrous clash
|
||||||
listname = classe + "List"
|
listname = classe + "List"
|
||||||
ll = len(listname)
|
|
||||||
l = len(classe)
|
l = len(classe)
|
||||||
if name[0:l] == listname:
|
if name[0:l] == listname:
|
||||||
func = name[l:]
|
func = name[l:]
|
||||||
@@ -1839,7 +1838,6 @@ def buildWrappers(module):
|
|||||||
classes.write("\n")
|
classes.write("\n")
|
||||||
# Append "<classname>.py" to class def, iff it exists
|
# Append "<classname>.py" to class def, iff it exists
|
||||||
try:
|
try:
|
||||||
wantfuncs = []
|
|
||||||
extra = open("libvirt-override-" + classname + ".py", "r")
|
extra = open("libvirt-override-" + classname + ".py", "r")
|
||||||
classes.write(" #\n")
|
classes.write(" #\n")
|
||||||
classes.write(" # %s methods from %s.py (hand coded)\n" % (classname, classname))
|
classes.write(" # %s methods from %s.py (hand coded)\n" % (classname, classname))
|
||||||
|
|||||||
Reference in New Issue
Block a user