xenu_nntp/lib/nntp/tiny/remote.py

17 lines
417 B
Python
Raw Normal View History

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'
)