Rev 4767: Some formatting is done even when not using a tty. in file:///home/vila/src/bzr/trunk/

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Oct 23 01:11:20 BST 2009


At file:///home/vila/src/bzr/trunk/

------------------------------------------------------------
revno: 4767
revision-id: v.ladeuil+lp at free.fr-20091023001120-9c7z0kdgms0fmtw0
parent: pqm at pqm.ubuntu.com-20091022162721-r0to3zua8p8oprq1
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: trunk
timestamp: Fri 2009-10-23 02:11:20 +0200
message:
  Some formatting is done even when not using a tty.
  
  * bzrlib/osutils.py:
  (terminal_width): Use a more reasonable value.
-------------- next part --------------
=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py	2009-10-22 15:19:59 +0000
+++ b/bzrlib/osutils.py	2009-10-23 00:11:20 +0000
@@ -1303,7 +1303,7 @@
         # pagers can then handle that themselves. A cleaner implementation
         # would be to fix the callers to not try to format at all in these
         # circumstances.
-        return 65536
+        return 1024
 
     if sys.platform == 'win32':
         return win32utils.get_console_size()[0]



More information about the bazaar-commits mailing list