From 7b3c7e57632a5edae8a5a121baca3de08bd8ca59 Mon Sep 17 00:00:00 2001 From: walkerlala Date: Wed, 6 Sep 2017 10:14:14 +0800 Subject: [PATCH] remove one results.append() why two duplicate results.appeend() and, what is that `results' used for --- background.py | 1 - 1 file changed, 1 deletion(-) diff --git a/background.py b/background.py index d6140d2..fa53eda 100644 --- a/background.py +++ b/background.py @@ -27,7 +27,6 @@ def run(f, *args, **kwargs): def task(f, *args, **kwargs): def do_task(): result = run(f, *args, **kwargs) - results.append(result) for cb in callbacks: result.add_done_callback(cb)