Skip to content

Commit

Permalink
Merge pull request #177 from ozziefallick/issue-147
Browse files Browse the repository at this point in the history
Fixed #147 to unbreak pidcat on Python 3.
  • Loading branch information
JakeWharton committed Jan 31, 2022
2 parents 0cb1c2c + 389dace commit 61cd1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pidcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
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)
named_processes = list(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.
named_processes = map(lambda package: package if package.find(":") != len(package) - 1 else package[:-1], named_processes)

Expand Down

0 comments on commit 61cd1ee

Please sign in to comment.