Captures better my intent

This commit is contained in:
Roland Hedberg
2010-12-09 09:51:28 +01:00
parent 542ecec61a
commit 28f633b0a1

View File

@@ -107,7 +107,10 @@ class Config(dict):
if binding == None or binding == DEFAULT_BINDING[service]:
res.append(spec)
elif isinstance(spec, tuple):
if binding == None or binding == spec[1]:
if binding:
if binding == spec[1]:
res.append(spec[0])
elif spec[1] == DEFAULT_BINDING[service]:
res.append(spec[0])
return res
except KeyError: