Show More
@@ -341,7 +341,10 class profile: | |||||
341 | exception_type, exception_value, traceback |
|
341 | exception_type, exception_value, traceback | |
342 | ) |
|
342 | ) | |
343 | if self._output == b'blackbox': |
|
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 | # ui.log treats the input as a format string, |
|
348 | # ui.log treats the input as a format string, | |
346 | # so we need to escape any % signs. |
|
349 | # so we need to escape any % signs. | |
347 | val = val.replace(b'%', b'%%') |
|
350 | val = val.replace(b'%', b'%%') |
General Comments 0
You need to be logged in to leave comments.
Login now