This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 aalbrecht
收信人 aalbrecht, barry, cjw296, splorgdar
日期 2008-06-22.12:06:43
SpamBayes Score 0.0040942277
Marked as misclassified
Message-id <1214136414.48.0.213530823136.issue1974@psf.upfronthosting.co.za>
In-reply-to
内容
For me this issue seems to be a duplicate of issue1645148.

In my opinion the test case that checks if headers created by strings or
Header instances are equal is incorrect. It shouldn't set the
continuation whitespace explicitly when creating a Headers instance. I
would expect that

  A) msg['aheader'] = 'a long string that breaks, but shortened here'

and

  B) msg['aheader'] = Header('a long string that breaks, but shortened
here')

result in the same output. But for A) a Header instance is initialized
in Generator._write_headers() with continuation_ws set to `\t` and for
B) the default ' ' is used (see http://bugs.python.org/msg31102).

I'm uploading a patch that modifies test_string_headerinst_eq() to what
I think it should look like with this message. Of course, this test will
fail at the moment, but maybe you agree that the Header instance in this
test should be initialized without explicitly setting continuation_ws.
历史
日期 用户 动作 参数
2008-06-22 12:06:55aalbrecht修改spambayes_score: 0.00409423 -> 0.0040942277
recipients: + aalbrecht, barry, cjw296, splorgdar
2008-06-22 12:06:54aalbrecht修改spambayes_score: 0.00409423 -> 0.00409423
messageid: <1214136414.48.0.213530823136.issue1974@psf.upfronthosting.co.za>
2008-06-22 12:06:53aalbrecht链接issue1974 messages
2008-06-22 12:06:51aalbrecht创建