17 lines
417 B
Python
17 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'
|
||
|
)
|