Minor fixes from PR comments
This commit is contained in:
parent
bdbcfc2a80
commit
f25d74f69c
|
@ -199,12 +199,12 @@ class ApplicationServicesHandler(object):
|
||||||
protocols[p].append(info)
|
protocols[p].append(info)
|
||||||
|
|
||||||
def _merge_instances(infos):
|
def _merge_instances(infos):
|
||||||
if len(infos) == 0:
|
if not infos:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
# Merge the 'instances' lists of multiple results, but just take
|
# Merge the 'instances' lists of multiple results, but just take
|
||||||
# the other fields from the first as they ought to be identical
|
# the other fields from the first as they ought to be identical
|
||||||
# deep-clone the result so as not to corrupt the cached one
|
# copy the result so as not to corrupt the cached one
|
||||||
combined = dict(infos[0])
|
combined = dict(infos[0])
|
||||||
combined["instances"] = list(combined["instances"])
|
combined["instances"] = list(combined["instances"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue