Skip to content

Commit 2f8c9c7

Browse files
committed
lint: remove unneeded global statements
1 parent 2dce710 commit 2f8c9c7

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

cwltool/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def _terminate_processes() -> None:
119119
continuing to execute while it kills the processes that they've
120120
spawned. This may occasionally lead to unexpected behaviour.
121121
"""
122-
global docker_exe
123122
# It's possible that another thread will spawn a new task while
124123
# we're executing, so it's not safe to use a for loop here.
125124
while processes_to_kill:

cwltool/process.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,6 @@ def __str__(self) -> str:
11091109

11101110
def uniquename(stem: str, names: Optional[set[str]] = None) -> str:
11111111
"""Construct a thread-unique name using the given stem as a prefix."""
1112-
global _names
11131112
if names is None:
11141113
names = _names
11151114
c = 1

0 commit comments

Comments
 (0)