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
ff5ca13b
Commit
ff5ca13b
authored
Jul 06, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylint
parent
3c7d4fb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/gevent/hub.py
src/gevent/hub.py
+3
-3
No files found.
src/gevent/hub.py
View file @
ff5ca13b
...
@@ -567,7 +567,7 @@ class Hub(RawGreenlet):
...
@@ -567,7 +567,7 @@ class Hub(RawGreenlet):
try
:
try
:
cb
=
self
.
loop
.
run_callback
(
current
.
switch
)
cb
=
self
.
loop
.
run_callback
(
current
.
switch
)
except
:
# pylint:disable=bare-except
except
:
# pylint:disable=bare-except
traceback
.
print_exc
()
traceback
.
print_exc
(
file
=
self
.
exception_stream
)
try
:
try
:
self
.
parent
.
throw
(
type
,
value
)
self
.
parent
.
throw
(
type
,
value
)
finally
:
finally
:
...
@@ -587,7 +587,7 @@ class Hub(RawGreenlet):
...
@@ -587,7 +587,7 @@ class Hub(RawGreenlet):
# called in error situations when it's not safe to import.
# called in error situations when it's not safe to import.
stderr
=
sys
.
stderr
stderr
=
sys
.
stderr
if
type
(
stderr
).
__name__
==
'FileObjectThread'
:
if
type
(
stderr
).
__name__
==
'FileObjectThread'
:
stderr
=
stderr
.
io
stderr
=
stderr
.
io
# pylint:disable=no-member
return
stderr
return
stderr
def
print_exception
(
self
,
context
,
type
,
value
,
tb
):
def
print_exception
(
self
,
context
,
type
,
value
,
tb
):
...
@@ -616,7 +616,7 @@ class Hub(RawGreenlet):
...
@@ -616,7 +616,7 @@ class Hub(RawGreenlet):
try
:
try
:
context
=
self
.
format_context
(
context
)
context
=
self
.
format_context
(
context
)
except
:
# pylint:disable=bare-except
except
:
# pylint:disable=bare-except
traceback
.
print_exc
()
traceback
.
print_exc
(
file
=
self
.
exception_stream
)
context
=
repr
(
context
)
context
=
repr
(
context
)
errstream
.
write
(
'%s failed with %s
\
n
\
n
'
%
(
context
,
getattr
(
type
,
'__name__'
,
'exception'
),
))
errstream
.
write
(
'%s failed with %s
\
n
\
n
'
%
(
context
,
getattr
(
type
,
'__name__'
,
'exception'
),
))
...
...
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