Relocate deletion of root variable
This commit is contained in:
parent
65c8a0558d
commit
4f055328e7
|
@ -220,6 +220,7 @@ def closestServers(client, all=False):
|
|||
servers[d] = [attrib]
|
||||
else:
|
||||
servers[d].append(attrib)
|
||||
del root
|
||||
|
||||
closest = []
|
||||
for d in sorted(servers.keys()):
|
||||
|
@ -232,7 +233,6 @@ def closestServers(client, all=False):
|
|||
break
|
||||
|
||||
del servers
|
||||
del root
|
||||
return closest
|
||||
|
||||
|
||||
|
|
|
@ -206,6 +206,7 @@ def closestServers(client, all=False):
|
|||
servers[d] = [server.attrib]
|
||||
else:
|
||||
servers[d].append(server.attrib)
|
||||
del root
|
||||
|
||||
closest = []
|
||||
for d in sorted(servers.keys()):
|
||||
|
@ -218,7 +219,6 @@ def closestServers(client, all=False):
|
|||
break
|
||||
|
||||
del servers
|
||||
del root
|
||||
return closest
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue