From 0baf19f39700a63ccc57bc310cdab8be8725c5df Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sat, 3 Apr 2021 19:44:29 +0200 Subject: [PATCH] Use new-style classes --- src/syslogmp/parser.py | 2 +- src/syslogmp/stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syslogmp/parser.py b/src/syslogmp/parser.py index 9736395..2768f99 100644 --- a/src/syslogmp/parser.py +++ b/src/syslogmp/parser.py @@ -36,7 +36,7 @@ from .stream import Stream MAX_MESSAGE_LENGTH = 1024 -class Parser(object): +class Parser: """Parse syslog messages.""" @classmethod diff --git a/src/syslogmp/stream.py b/src/syslogmp/stream.py index 9e77911..4d39281 100644 --- a/src/syslogmp/stream.py +++ b/src/syslogmp/stream.py @@ -12,7 +12,7 @@ Treat binary data as a stream and provide methods to read from it. from itertools import islice, takewhile -class Stream(object): +class Stream: def __init__(self, data): self.iterator = iter(data) -- 2.45.2