Skip to content

Commit

Permalink
Fix some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Sep 27, 2024
1 parent 84993a5 commit eeca385
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/concurrent/futures/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ class WorkerContext(_thread.WorkerContext):
def prepare(cls, initializer, initargs, shared):
if isinstance(initializer, str):
if initargs:
raise ValueError(f'an initializer script does not take args, got {args!r}')
raise ValueError(f'an initializer script does not take args, got {initargs!r}')
initscript = initializer
# Make sure the script compiles.
# XXX Keep the compiled code object?
compile(script, '<string>', 'exec')
compile(initscript, '<string>', 'exec')
elif initializer is not None:
pickled = pickle.dumps((initializer, initargs))
initscript = f'''if True:
Expand Down Expand Up @@ -152,7 +152,7 @@ def finalize(self):
def run(self, task):
data, kind = task
if kind == 'script':
self._exec(script)
self._exec(data)
return None
elif kind == 'function':
self._exec(
Expand Down

0 comments on commit eeca385

Please sign in to comment.