Your message dated Sun, 11 Dec 2011 15:05:38 +0000
with message-id <[email protected]>
and subject line Bug#577454: fixed in pydf 10
has caused the Debian Bug report #577454,
regarding pydf: fails in Emacs shell buffers
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
577454: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577454
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pydf
Version: 9
Severity: normal
Using pydf in Emacs shell buffers fails like this:
$ pydf
Traceback (most recent call last):
File "/usr/bin/pydf", line 644, in <module>
display_table(table, terminal_width)
File "/usr/bin/pydf", line 534, in display_table
squeeze_table(table, terminal_width-1)
File "/usr/bin/pydf", line 482, in squeeze_table
colsize = len(row[col][1])
ValueError: __len__() should return >= 0
$
That's because the termios detection routine appears to work, but
returns zero. When running inside Emacs, the best way to detect the
terminal width is probably to use COLUMNS, both shell mode and term mode
set it:
--- /usr/bin/pydf 2010-04-05 18:11:10.000000000 +0200
+++ /tmp/pydf 2010-04-11 21:55:41.041725101 +0200
@@ -77,6 +77,8 @@
return 80
def get_terminal_width():
+ if 'INSIDE_EMACS' in os.environ:
+ return int(os.environ['COLUMNS'])
handlers = [get_terminal_width_termios, get_terminal_width_resize,
get_terminal_width_dumb]
for handler in handlers:
width = handler()
Thanks.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (900, 'unstable'), (850, 'testing'), (800, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pydf depends on:
ii python 2.5.4-9 An interactive high-level object-o
pydf recommends no packages.
pydf suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: pydf
Source-Version: 10
We believe that the bug you reported is fixed in the latest version of
pydf, which is due to be installed in the Debian FTP archive:
pydf_10.dsc
to main/p/pydf/pydf_10.dsc
pydf_10.tar.gz
to main/p/pydf/pydf_10.tar.gz
pydf_10_all.deb
to main/p/pydf/pydf_10_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Radovan Garabík <[email protected]> (supplier of updated pydf
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 11 Dec 2011 15:06:41 +0200
Source: pydf
Binary: pydf
Architecture: source all
Version: 10
Distribution: unstable
Urgency: low
Maintainer: Radovan Garabík <[email protected]>
Changed-By: Radovan Garabík <[email protected]>
Description:
pydf - colourised df(1)-clone
Closes: 577453 577454 577595 579936 582462
Changes:
pydf (10) unstable; urgency=low
.
* normal_colour was not interpreting colour codes properly
(thanks to Juhapekka Tolvanen and Norman Rasmussen for
pointing this out)
(closes: #577595, #582462)
* if termios reports zero for terminal width, use fallback
(closes: #577454)
* added devtmpfs to the list of special filesystems
(closes: #577453), both bugreports thanks to Romain Francoise
* use subprocess or commands depending on major python version
(closes: #579936), patch thanks to Emmanuel Bouthenot
* remove parentheses in class definition, to enable
python2.4 compatibility (thanks to Clint Savage)
* add patch for /dev/mapper links, thanks to Ernest Beinrohr
Checksums-Sha1:
015a3f15f7300599ea6720d3082e071211687158 704 pydf_10.dsc
805d7fae5148e9bbba1d283c2d37d2d111dcf58e 13430 pydf_10.tar.gz
e28ef602e8f47d2c68102ff85db021a887ad8196 13936 pydf_10_all.deb
Checksums-Sha256:
3b3327b947afb51b9eb6d399f35d9802481fa47d12d8fb7c991a437784c90ee5 704
pydf_10.dsc
71be682c86a352afbafcf612cbc236f6f5810d80635685869a9c9b320203e241 13430
pydf_10.tar.gz
43e8d5180e3cc37381b9e8a21294a23a3980af28af4ac0af42ffd258ccac83ca 13936
pydf_10_all.deb
Files:
f312e746e1236702732626284a0ceb7d 704 utils optional pydf_10.dsc
7f7eeafa90cad534875b2cb23aa3b2f1 13430 utils optional pydf_10.tar.gz
2c0643f0259d202d3f972b614708bdc9 13936 utils optional pydf_10_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk7kvrkACgkQUBQJxqD+WLjmIwCeJ/Tn/Vzs5UrYlo7MKBGZeuoX
4GwAn3yXPBcpJB+N2UIhjAaNlzwfzkso
=aqZY
-----END PGP SIGNATURE-----
--- End Message ---