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()