Skip to content

Commit 4679505

Browse files
committed
synctiles: avoid lambda in Pool initializer
This raises a PicklingError on Python 3.14. Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
1 parent 97a6179 commit 4679505

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

demo/_synctiles.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,7 @@ def sync_slide(
508508
mpp = None
509509

510510
# Start compute pool
511-
pool = Pool(
512-
workers, lambda: pool_init(storage.bucket.name, slide_path)
513-
)
511+
pool = Pool(workers, pool_init, (storage.bucket.name, slide_path))
514512
try:
515513
# Tile slide
516514
def do_tile(

0 commit comments

Comments
 (0)