[MERGE] Bugfix #87178: don't do sys.stdout.flush() outside exception wrapper

Alexander Belchenko bialix at ukr.net
Thu Jun 21 10:58:47 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko пишет:
> This patch fixes problem described in bug report
> https://bugs.launchpad.net/bzr/+bug/87178.
> 
> This patch simply revert changes made by Ian
> in revision 2394.2.6 (merged to 2448).

- ------------------------------------------------------------------------

=== modified file 'bzrlib/commands.py'
- --- bzrlib/commands.py	2007-06-06 11:06:04 +0000
+++ bzrlib/commands.py	2007-06-21 09:48:32 +0000
@@ -713,11 +713,9 @@

 def run_bzr_catch_errors(argv):
     try:
- -        try:
- -            return run_bzr(argv)
- -        finally:
- -            # do this here inside the exception wrappers to catch EPIPE
- -            sys.stdout.flush()
+        return run_bzr(argv)
+        # do this here inside the exception wrappers to catch EPIPE
+        sys.stdout.flush()

^-- May be we need to completely remove sys.stdout.flush() here,
because we do it later in bzr script itself?

[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGekvXzYr338mxwCURAsDsAJ4zvcx/V1pR3lUMoVM1CYRvyBm0hgCeJ0Lh
LE9MzMTWj9ROH3M/JH85rXM=
=AR9m
-----END PGP SIGNATURE-----



More information about the bazaar mailing list