Comments
Patch
@@ -814,11 +814,6 @@
def termwidth(self):
'''how wide is the terminal in columns?
'''
- if 'COLUMNS' in os.environ:
- try:
- return int(os.environ['COLUMNS'])
- except ValueError:
- pass
return util.termwidth()
def formatted(self):
@@ -120,13 +120,20 @@
statfiles = getattr(osutil, 'statfiles', platform.statfiles)
statisexec = platform.statisexec
statislink = platform.statislink
-termwidth = platform.termwidth
testpid = platform.testpid
umask = platform.umask
unlink = platform.unlink
unlinkpath = platform.unlinkpath
username = platform.username
+def termwidth():
+ if 'COLUMNS' in os.environ:
+ try:
+ return int(os.environ['COLUMNS'])
+ except ValueError:
+ pass
+ return platform.termwidth()
+
# Python compatibility
_notset = object()