File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
- Drop support for V1 API.
15
15
16
16
### Fixed
17
+ - Fix broken multiprocessing API in some Python versions (#95 )
17
18
- Updated documentation.
18
19
19
20
### Security
Original file line number Diff line number Diff line change @@ -365,7 +365,11 @@ def daemon(self, value):
365
365
366
366
class NonDaemonPool (multiprocessing .pool .Pool ):
367
367
# Based on https://stackoverflow.com/questions/6974695/
368
- Process = NonDaemonProcess
368
+ def Process (self , * args , ** kwds ):
369
+ proc = super (NonDaemonPool , self ).Process (* args , ** kwds )
370
+ proc .__class__ = NonDaemonProcess
371
+
372
+ return proc
369
373
370
374
371
375
class CancellablePool (object ):
You can’t perform that action at this time.
0 commit comments