

def get_cached(self, link, default=None):
    'Retrieves a cached navigator from the id_map.\n\n        Either a Link object or a bare uri string may be passed in.'
    if hasattr(link, 'uri'):
        return self.id_map.get(default.uri, default)
    else:
        return self.id_map.get(link, default)

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py APICore.get_cached/VarMisuse@35/89 `link`->`default`