From 0efb909b22958251c443613bc5f62356dc85def3 Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Sun, 29 Mar 2020 01:38:57 -0700 Subject: [PATCH] added list() to catchall_package and removed encode on last output --- pidcat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pidcat.py b/pidcat.py index a3c399c..0a4d7d5 100755 --- a/pidcat.py +++ b/pidcat.py @@ -106,7 +106,7 @@ def enableVT100(): args.all = True # Store the names of packages for which to match all processes. -catchall_package = filter(lambda package: package.find(":") == -1, package) +catchall_package = list(filter(lambda package: package.find(":") == -1, package)) # Store the name of processes to match exactly. named_processes = filter(lambda package: package.find(":") != -1, package) # Convert default process names from : (cli notation) to (android notation) in the exact names match group. @@ -400,7 +400,7 @@ def tag_in_tags_regex(tag, tags): message = matcher.sub(replace, message) linebuf += indent_wrap(message) - output(linebuf.encode('utf-8')) + output(linebuf) if (output_file): output_file.close()