Skip to content

Commit

Permalink
pythongh-107963: Fix set_forkserver_preload to check the type of give…
Browse files Browse the repository at this point in the history
…n list
  • Loading branch information
corona10 committed Aug 15, 2023
1 parent 2e27da1 commit 3fe87b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/multiprocessing/forkserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _stop_unlocked(self):

def set_forkserver_preload(self, modules_names):
'''Set list of module names to try to load in forkserver process.'''
if not all(type(mod) is str for mod in self._preload_modules):
if not all(type(mod) is str for mod in module_names):
raise TypeError('module_names must be a list of strings')
self._preload_modules = modules_names

Expand Down

0 comments on commit 3fe87b7

Please sign in to comment.