def clean(self):
mapping = self._mapping<EOL>for key, val in list(mapping.items()):<EOL><INDENT>if key() is None:<EOL><INDENT>del mapping[key]<EOL>val.remove(key)<EOL><DEDENT><DEDENT>
Clean dead weak references from the dictionary