def __delitem__(self, key):
if self.synchronized:<EOL><INDENT>self.delete_entries(self[key])<EOL>self.delete_date(key)<EOL><DEDENT>super(EntriesCollection, self).__delitem__(key)<EOL>
If in synchronized mode, delete the date and its entries from the
textual representation.