class RemoteException(Exception): pass class RemoteNewsgroup(): __slots__ = 'name', 'low', 'high', 'post', def __init__(self, name: str, low: int, high: int, post: bool): self.name: str = name self.low: int = low self.high: int = high self.post: bool = post def __str__(self): return "%s %d %d %s" % ( self.name, self.low, self.high, 'y' if self.post else 'n' ) class RemoteMessage(): __slots__ = ( 'id', 'subject', 'sender', 'created_on', 'message_id', 'references', 'size', 'lines', 'headers' ) def __init__(self): self.headers = dict()