Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
d175d984
Commit
d175d984
authored
Apr 21, 2014
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threadpool.py: rename internal var
'result' into 'thread_result'
parent
f7209c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gevent/threadpool.py
gevent/threadpool.py
+4
-4
No files found.
gevent/threadpool.py
View file @
d175d984
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment