Rev 2290: not necessary to explicitly flush stderr (spiv) in http://sourcefrog.net/bzr/trivial

Martin Pool mbp at sourcefrog.net
Thu Feb 15 10:09:54 GMT 2007


At http://sourcefrog.net/bzr/trivial

------------------------------------------------------------
revno: 2290
revision-id: mbp at sourcefrog.net-20070215100953-94yv7skrymohnnbi
parent: mbp at sourcefrog.net-20070215061543-yzyvx2fuidks9l7i
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: trivial
timestamp: Thu 2007-02-15 21:09:53 +1100
message:
  not necessary to explicitly flush stderr (spiv)
modified:
  bzr                            bzr.py-20050313053754-5485f144c7006fa6
=== modified file 'bzr'
--- a/bzr	2007-02-15 06:15:43 +0000
+++ b/bzr	2007-02-15 10:09:53 +0000
@@ -105,8 +105,7 @@
     # won't run but we don't use them.  Also file buffers won't be flushed,
     # but our policy is to always close files from a finally block. -- mbp 20070215
     sys.stdout.flush()
-    sys.stderr.flush()
+    # stderr isn't buffered
     os._exit(exit_val)
-    ## sys.exit(exit_val)
 else:
     pass    # should this give an error? - it can't be used as a lib




More information about the bazaar-commits mailing list