def removeAttachment(self, title):
        """
        Removes the attachment from the given title.
        
        :param      title | <str>
        
        :return     <variant> | attachment
        """
        attachment = self._attachments.pop(nativestring(title), None)
        
        if attachment:
            self.resizeToContents()
        
        return attachment
def removeAttachment ( self , title ) : attachment = self . _attachments . pop ( nativestring ( title ) , None ) if attachment : self . resizeToContents ( ) return attachment
Removes the attachment from the given title.
        
        :param      title | <str>
        
        :return     <variant> | attachment