Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added list() to catchall_package and removed encode on last output #2

Merged
merged 1 commit into from
Mar 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pidcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package>: (cli notation) to <package> (android notation) in the exact names match group.
Expand Down Expand Up @@ -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()