From 78aba9d35e46bd0ffe986cf50615016048d3d771 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Tue, 18 Jun 2013 08:26:06 -0700 Subject: [PATCH] Python 3-compatibility. --- pidcat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pidcat.py b/pidcat.py index d8e8c11..87bc5ca 100755 --- a/pidcat.py +++ b/pidcat.py @@ -179,7 +179,7 @@ while True: linebuf += colorize(' ' * (header_size - 1), bg=WHITE) linebuf += ' PID: %s UID: %s GIDs: %s' % (line_pid, line_uid, line_gids) linebuf += '\n' - print linebuf + print(linebuf) last_tag = None # Ensure next log gets a tag printed dead_pid = parse_death(tag, message) @@ -189,7 +189,7 @@ while True: linebuf += colorize(' ' * (header_size - 1), bg=RED) linebuf += ' Process %s ended' % dead_pid linebuf += '\n' - print linebuf + print(linebuf) last_tag = None # Ensure next log gets a tag printed if owner not in pids: @@ -219,4 +219,4 @@ while True: message = matcher.sub(replace, message) linebuf += indent_wrap(message) - print linebuf + print(linebuf)