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
5206a71f
Commit
5206a71f
authored
Jul 16, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc: remove deprecated trap_errors
parent
7132adc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
gevent/proc.py
gevent/proc.py
+2
-11
No files found.
gevent/proc.py
View file @
5206a71f
...
...
@@ -467,6 +467,7 @@ class Source(object):
class
Waiter
(
object
):
# XXX: reuse Waiter from gevent and remove this one
def
__init__
(
self
):
self
.
greenlet
=
None
...
...
@@ -612,17 +613,7 @@ def spawn_link_exception(function, *args, **kwargs):
return
p
def
trap_errors
(
errors
,
func
,
*
args
,
**
kwargs
):
"""DEPRECATED; use wrap_errors"""
import
warnings
warnings
.
warn
(
"proc.trap_errors function is deprecated in favor of proc.wrap_errors class"
,
DeprecationWarning
,
stacklevel
=
2
)
try
:
return
func
(
*
args
,
**
kwargs
)
except
errors
,
ex
:
return
ex
# not specific to proc module
class
wrap_errors
(
object
):
"""Helper to make function return an exception, rather than raise it.
...
...
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