You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/08/12 22:08:48 UTC
svn commit: r803692 - /qpid/trunk/qpid/python/qpid-python-test
Author: rhs
Date: Wed Aug 12 20:08:48 2009
New Revision: 803692
URL: http://svn.apache.org/viewvc?rev=803692&view=rev
Log:
made width default pay attention to the COLUMNS environment variable
Modified:
qpid/trunk/qpid/python/qpid-python-test
Modified: qpid/trunk/qpid/python/qpid-python-test
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid-python-test?rev=803692&r1=803691&r2=803692&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid-python-test (original)
+++ qpid/trunk/qpid/python/qpid-python-test Wed Aug 12 20:08:48 2009
@@ -134,7 +134,10 @@
rows, cols, xpx, ypx = struct.unpack("HHHH", x)
return cols
else:
- return 80
+ try:
+ return int(os.environ.get("COLUMNS", "80"))
+ except ValueError:
+ return 80
WIDTH = width()
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org