[PATCH V2] ui: flush stderr after printing a non-chained exception for Windows

Yuya Nishihara yuya at tcha.org
Sun Jun 14 03:50:41 CDT 2015


On Sat, 13 Jun 2015 12:46:20 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1434161381 14400
> #      Fri Jun 12 22:09:41 2015 -0400
> # Node ID a82599a17c15532049827be88e52af31c7f8b3b3
> # Parent  e8075329c5fbb651508777c15cb6bc9ae33b5dff
> ui: flush stderr after printing a non-chained exception for Windows

> -                self.flush()  # flush debug or status message
> -                traceback.print_exception(exc[0], exc[1], exc[2],
> -                                          file=self.ferr)
> +                output = traceback.format_exception(exc[0], exc[1], exc[2])
> +                self.write_err(''.join(output))

This looks good to me, thanks.


More information about the Mercurial-devel mailing list