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
1414- Drop support for V1 API.
1515
1616### Fixed
17+ - Fix broken multiprocessing API in some Python versions (#95 )
1718- Updated documentation.
1819
1920### Security
Original file line number Diff line number Diff line change @@ -365,7 +365,11 @@ def daemon(self, value):
365365
366366class NonDaemonPool (multiprocessing .pool .Pool ):
367367 # 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
369373
370374
371375class CancellablePool (object ):
You can’t perform that action at this time.
0 commit comments