Relocate deletion of root variable

This commit is contained in:
Matt Martz 2013-04-27 08:56:21 -05:00
parent 65c8a0558d
commit 4f055328e7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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