Skip to content

Instantly share code, notes, and snippets.

@StephenGrey
StephenGrey / gist:4d42407ace8d89dcb9d6bd96ee63a32f
Created February 4, 2021 11:15
implementation of msglite
from msglite import Message,Attachment
#Parts of this code incorporated from Aleph code base
class LightMessage(Message):
"""ignore attachments completely"""
def parseAttachments(self):
return None
class LazyMessage(Message):
"""Not very strict parser! Parse a message even if some attachments fail"""

Keybase proof

I hereby claim:

  • I am stephengrey on github.
  • I am stephengrey (https://keybase.io/stephengrey) on keybase.
  • I have a public key ASCOUpg6mYoEBD5Vbi2jAAmmb73k3W9k7Gp4pjDUS8_iYQo

To claim this, I am signing this object: