diff --git a/wcs/qommon/logger.py b/wcs/qommon/logger.py index 54559634f..8c9978a55 100644 --- a/wcs/qommon/logger.py +++ b/wcs/qommon/logger.py @@ -98,16 +98,16 @@ def parse_logstream(stream): non-blank character continue until the lines does not start with a blank character ''' - line = stream.next() + line = next(stream) while True: r = readline(line) try: # Skip badly formatted lines if r is None: - line = stream.next() + line = next(stream) continue while True: - line = stream.next() + line = next(stream) if line.startswith(' '): # Append the line without the first blank r['message'] = r['message'] + line[1:]