991 Public method to forget about the given editor. |
991 Public method to forget about the given editor. |
992 |
992 |
993 @param editor reference to the editor to forget about |
993 @param editor reference to the editor to forget about |
994 @type Editor |
994 @type Editor |
995 """ |
995 """ |
996 for uid in self.__editors: |
996 for uid in list(self.__editors): |
997 if self.__editors[uid] is editor: |
997 if self.__editors[uid] is editor: |
998 with contextlib.suppress(KeyError): |
998 with contextlib.suppress(KeyError): |
999 del self.__editors[uid] |
999 del self.__editors[uid] |
1000 break |
1000 break |