Skip to content

Commit

Permalink
Add a missing import.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Sep 27, 2024
1 parent 6def4be commit 84993a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/concurrent/futures/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def prepare(cls, initializer, initargs, shared):
elif initializer is not None:
pickled = pickle.dumps((initializer, initargs))
initscript = f'''if True:
import pickle
initializer, initargs = pickle.loads({pickled!r})
initializer(*initargs)
'''
Expand Down

0 comments on commit 84993a5

Please sign in to comment.