diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2022-02-03 09:20:08 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-03 09:20:08 (GMT) |
| commit | 0cbdd2131195b0d313762968f604e80a3e65ca9f (patch) | |
| tree | 3f512c22e4ef6bbfc9d2246ad26446271e0e3ce7 /Lib/multiprocessing/process.py | |
| parent | 6394e981adaca2c0daa36c8701611e250d74024c (diff) | |
| download | cpython-0cbdd2131195b0d313762968f604e80a3e65ca9f.zip cpython-0cbdd2131195b0d313762968f604e80a3e65ca9f.tar.gz cpython-0cbdd2131195b0d313762968f604e80a3e65ca9f.tar.bz2 | |
bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993)
Diffstat (limited to 'Lib/multiprocessing/process.py')
| -rw-r--r-- | Lib/multiprocessing/process.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/multiprocessing/process.py b/Lib/multiprocessing/process.py index 0b2e0b4..3917d2e 100644 --- a/Lib/multiprocessing/process.py +++ b/Lib/multiprocessing/process.py @@ -427,6 +427,7 @@ _exitcode_to_name = {} for name, signum in list(signal.__dict__.items()): if name[:3]=='SIG' and '_' not in name: _exitcode_to_name[-signum] = f'-{name}' +del name, signum # For debug and leak testing _dangling = WeakSet() |
