~homeworkprod/syslogmp

0baf19f39700a63ccc57bc310cdab8be8725c5df — Jochen Kupperschmidt 3 years ago aa38ae1
Use new-style classes
2 files changed, 2 insertions(+), 2 deletions(-)

M src/syslogmp/parser.py
M src/syslogmp/stream.py
M src/syslogmp/parser.py => src/syslogmp/parser.py +1 -1
@@ 36,7 36,7 @@ from .stream import Stream
MAX_MESSAGE_LENGTH = 1024


class Parser(object):
class Parser:
    """Parse syslog messages."""

    @classmethod

M src/syslogmp/stream.py => src/syslogmp/stream.py +1 -1
@@ 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)