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
75969279
Commit
75969279
authored
Jul 30, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc: don't print erroneous traceback for cancelled links
parent
337111f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
gevent/proc.py
gevent/proc.py
+12
-11
No files found.
gevent/proc.py
View file @
75969279
...
...
@@ -148,25 +148,26 @@ class Link(object):
class
LinkToEvent
(
Link
):
def
__call__
(
self
,
source
):
if
self
.
listener
is
None
:
return
if
source
.
has_value
():
self
.
listener
.
send
(
source
.
value
)
else
:
self
.
listener
.
send_exception
(
*
source
.
exc_info
())
if
self
.
listener
is
not
None
:
if
source
.
has_value
():
self
.
listener
.
send
(
source
.
value
)
else
:
self
.
listener
.
send_exception
(
*
source
.
exc_info
())
class
LinkToGreenlet
(
Link
):
def
__call__
(
self
,
source
):
if
source
.
has_value
():
self
.
listener
.
throw
(
LinkedCompleted
(
source
.
name
))
else
:
self
.
listener
.
throw
(
getLinkedFailed
(
source
.
name
,
*
source
.
exc_info
()))
if
self
.
listener
is
not
None
:
if
source
.
has_value
():
self
.
listener
.
throw
(
LinkedCompleted
(
source
.
name
))
else
:
self
.
listener
.
throw
(
getLinkedFailed
(
source
.
name
,
*
source
.
exc_info
()))
class
LinkToCallable
(
Link
):
def
__call__
(
self
,
source
):
self
.
listener
(
source
)
if
self
.
listener
is
not
None
:
self
.
listener
(
source
)
def
waitall
(
lst
,
trap_errors
=
False
,
queue
=
None
):
...
...
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