Commit d175d984 authored by Denis Bilenko's avatar Denis Bilenko

threadpool.py: rename internal var

'result' into 'thread_result'
parent f7209c91
...@@ -188,21 +188,21 @@ class ThreadPool(object): ...@@ -188,21 +188,21 @@ class ThreadPool(object):
# otherwise, _adjust might think there's one more idle thread that # otherwise, _adjust might think there's one more idle thread that
# needs to be killed # needs to be killed
return return
func, args, kwargs, result = task func, args, kwargs, thread_result = task
try: try:
value = func(*args, **kwargs) value = func(*args, **kwargs)
except: except:
exc_info = getattr(sys, 'exc_info', None) exc_info = getattr(sys, 'exc_info', None)
if exc_info is None: if exc_info is None:
return return
result.handle_error((self, func), exc_info()) thread_result.handle_error((self, func), exc_info())
else: else:
if sys is None: if sys is None:
return return
result.set(value) thread_result.set(value)
del value del value
finally: finally:
del func, args, kwargs, result, task del func, args, kwargs, thread_result, task
finally: finally:
if sys is None: if sys is None:
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment