Show More
@@ -341,7 +341,10 class profile: | |||
|
341 | 341 | exception_type, exception_value, traceback |
|
342 | 342 | ) |
|
343 | 343 | if self._output == b'blackbox': |
|
344 |
|
|
|
344 | fp = self._fp | |
|
345 | # Help pytype: blackbox output uses io.BytesIO instead of a file | |
|
346 | assert isinstance(fp, util.stringio) | |
|
347 | val = b'Profile:\n%s' % fp.getvalue() | |
|
345 | 348 | # ui.log treats the input as a format string, |
|
346 | 349 | # so we need to escape any % signs. |
|
347 | 350 | val = val.replace(b'%', b'%%') |
General Comments 0
You need to be logged in to leave comments.
Login now