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
aefba296
Commit
aefba296
authored
Nov 21, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround
https://github.com/python-greenlet/greenlet/issues/218
parent
e8c18b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/gevent/_tracer.py
src/gevent/_tracer.py
+4
-1
No files found.
src/gevent/_tracer.py
View file @
aefba296
...
...
@@ -99,9 +99,12 @@ class GreenletTracer(object):
self
.
active_greenlet
=
getcurrent
()
def
did_block_hub_report
(
self
,
hub
,
active_greenlet
,
format_kwargs
):
# XXX: On Python 2 with greenlet 1.0a1, '%s' formatting a greenlet
# results in a unicode object. This is a bug in greenlet, I think.
# https://github.com/python-greenlet/greenlet/issues/218
report
=
[
'='
*
80
,
'
\
n
%s : Greenlet %s appears to be blocked'
%
(
gmctime
(),
active_greenlet
)]
(
gmctime
(),
str
(
active_greenlet
)
)]
report
.
append
(
" Reported by %s"
%
(
self
,))
try
:
frame
=
sys
.
_current_frames
()[
hub
.
thread_ident
]
...
...
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