Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _excavate_asymmetric_friendships(self):
"""Recognizes cases where a character A considers another, B, to be a friend,
while B considers A to be an enemy.
"""
asymmetric_friendships = []
for person in self.simulation.town.residents:
for friend in person.friends:
if friend.dislikes(person):
asymmetric_friendships.append(AsymmetricFriendship(subjects=(person, friend)))
return asymmetric_friendships