def _follow_link(self, value):
    '''Returns given `value` or, if it is a symlink, the `value` it names.'''
    seen_keys = set()
    while True:
      link_key = self._link_for_value(value)
      if not link_key:
        return value

      assert link_key not in seen_keys, 'circular symlink reference'
      seen_keys.add(link_key)
      value = super(SymlinkDatastore, self).get(link_key)
def _follow_link ( self , value ) : seen_keys = set ( ) while True : link_key = self . _link_for_value ( value ) if not link_key : return value assert link_key not in seen_keys , 'circular symlink reference' seen_keys . add ( link_key ) value = super ( SymlinkDatastore , self ) . get ( link_key )
Returns given `value` or, if it is a symlink, the `value` it names.