Commit aefba296 authored by Jason Madden's avatar Jason Madden
parent e8c18b79
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment