Skip to content

Commit

Permalink
s/remove/discard
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Williams authored and jimmylai committed Apr 9, 2020
1 parent 834b5b9 commit 30cb9f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libcst/codemod/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,7 @@ def parallel_exec_transform_with_prettyprint( # noqa: C901
process = filename_to_process.pop(result.filename, None)
if process:
process.join()
if process in joinable_processes:
joinable_processes.remove(process)
joinable_processes.discard(process)

# Now, join on all of them so we don't leave zombies or hang
for p in joinable_processes:
Expand Down

0 comments on commit 30cb9f3

Please sign in to comment.