[ mailman-Bugs-1444447 ] show_qfiles: 'str' object has no attribute 'as_string'
SourceForge.net
noreply at sourceforge.net
Mon Mar 6 22:43:49 CET 2006
Bugs item #1444447, was opened at 2006-03-06 22:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1444447&group_id=103
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: command line scripts
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Axel Beckert (xtaran)
Assigned to: Nobody/Anonymous (nobody)
Summary: show_qfiles: 'str' object has no attribute 'as_string'
Initial Comment:
With mailman 2.1.5 and Python 2.4 on SuSE Linux 9.3,
show_qfiles throws an error:
python show_qfiles-2.1.7.orig ~/xchange/test.pck
====================> /home/abe/xchange/test.pck
Traceback (most recent call last):
File "show_qfiles-2.1.7.orig", line 74, in ?
main()
File "show_qfiles-2.1.7.orig", line 67, in main
sys.stdout.write(msg.as_string())
AttributeError: 'str' object has no attribute 'as_string'
Removing the ".as_string()" from the source of
show_qfiles fixes the problem.
show_qfiles is still the same in 2.1.7 and still throws
this error. Tested with 2.1.7 and Python 2.4.1 under
SuSE Linux 10.0.
Patch:
--- show_qfiles-2.1.7.orig 2006-03-06
22:38:46.000000000 +0100
+++ show_qfiles-2.1.7 2006-03-06 22:40:27.000000000 +0100
@@ -64,7 +64,7 @@
fp = open(filename)
if filename.endswith(".pck"):
msg = load(fp)
- sys.stdout.write(msg.as_string())
+ sys.stdout.write(msg)
else:
sys.stdout.write(fp.read())
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1444447&group_id=103
More information about the Mailman-coders
mailing list