- more PEP8 corrections
This commit is contained in:
@@ -2,16 +2,19 @@ from PyQt5 import QtCore
|
||||
from multiprocessing import Pool
|
||||
import dill
|
||||
|
||||
|
||||
def run_dill_encoded(what):
|
||||
fun, args = dill.loads(what)
|
||||
print("load", fun, args)
|
||||
return fun(*args)
|
||||
|
||||
|
||||
def apply_async(pool, fun, args):
|
||||
print("...", fun, args)
|
||||
print("dumps", dill.dumps((fun, args)))
|
||||
return pool.map_async(run_dill_encoded, (dill.dumps((fun, args)),))
|
||||
|
||||
|
||||
def func1():
|
||||
print("func")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user