File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ class WorkerContext(_thread.WorkerContext):
53
53
def prepare (cls , initializer , initargs , shared ):
54
54
if isinstance (initializer , str ):
55
55
if initargs :
56
- raise ValueError (f'an initializer script does not take args, got { args !r} ' )
56
+ raise ValueError (f'an initializer script does not take args, got { initargs !r} ' )
57
57
initscript = initializer
58
58
# Make sure the script compiles.
59
59
# XXX Keep the compiled code object?
60
- compile (script , '<string>' , 'exec' )
60
+ compile (initscript , '<string>' , 'exec' )
61
61
elif initializer is not None :
62
62
pickled = pickle .dumps ((initializer , initargs ))
63
63
initscript = f'''if True:
@@ -152,7 +152,7 @@ def finalize(self):
152
152
def run (self , task ):
153
153
data , kind = task
154
154
if kind == 'script' :
155
- self ._exec (script )
155
+ self ._exec (data )
156
156
return None
157
157
elif kind == 'function' :
158
158
self ._exec (
You can’t perform that action at this time.
0 commit comments