xenu_nntp/lib/nntp/tiny/remote.py
2024-12-04 23:07:50 -05:00

16 lines
417 B
Python

class RemoteNewsgroup():
__slots__ = 'name', 'low', 'high', 'post',
def __init__(self, name: str, low: int, high: int, post: bool):
self.name = name
self.low = low
self.high = high
self.post = post
def __str__(self):
return "%s %d %d %s" % (
self.name,
self.low,
self.high,
'y' if self.post else 'n'
)