"""
addr = me._namemap[host]
if addr is None:
- raise KeyError, host
+ raise KeyError(host)
return addr
def _resolved(me, host, addr):
pass
else:
if threadp:
- raise InheritanceCycleError, (key, path)
+ raise InheritanceCycleError(key, path)
## See whether the answer is ready waiting for us.
try:
value = v
winner = pp
elif value != v:
- raise AmbiguousOptionError, (key, winner, value, pp, v)
+ raise AmbiguousOptionError(key, winner, value, pp, v)
## That's the best we could manage.
path.pop()
else:
value, _ = me._get(sec, key)
if value is None:
- raise MissingKeyException, (sec, key)
+ raise MissingKeyException(sec, key)
## Expand the value and return it.
return me._expand(sec, value, resolvep)