Commit 0954aaa
committed
Fix mutable default argument in multiprocessing.dummy.DummyProcess
Change the default value of the 'kwargs' parameter in
DummyProcess.__init__() from {} to None to avoid mutable default
argument issues. This makes DummyProcess consistent with
threading.Thread and threading.Timer which already use this pattern.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reported by: Dmitrii Chuprov <cheese@altlinux.org>
Signed-off-by: Denis Sergeev <zeff@altlinux.org>1 parent 4afa985 commit 0954aaa
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments