diff --git a/lib/nntp/tiny/session.py b/lib/nntp/tiny/session.py index d072149..996a471 100644 --- a/lib/nntp/tiny/session.py +++ b/lib/nntp/tiny/session.py @@ -66,26 +66,26 @@ class MessageRange(): match = __class__.RE_NUM.match(r) if match: obj = __class__() - obj.id = match[1] + obj.id = int(match[1]) return obj match = __class__.RE_RANGE.match(r) if match: obj = __class__() - obj.min = match[1] - obj.max = match[2] + obj.min = int(match[1]) + obj.max = int(match[2]) return obj match = __class__.RE_RANGE_LOWER.match(r) if match: obj = __class__() - obj.min = match[1] + obj.min = int(match[1]) return obj match = __class__.RE_RANGE_UPPER.match(r) if match: obj = __class__() - obj.max = match[1] + obj.max = int(match[1]) return obj class Session():