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.
| Author | aalbrecht |
|---|---|
| Recipients | aalbrecht, barry, cjw296, splorgdar |
| Date | 2008年06月22日.12:06:43 |
| SpamBayes Score | 0.0040942277 |
| Marked as misclassified | No |
| Message-id | <1214136414.48.0.213530823136.issue1974@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月22日 12:06:55 | aalbrecht | set | spambayes_score: 0.00409423 -> 0.0040942277 recipients: + aalbrecht, barry, cjw296, splorgdar |
| 2008年06月22日 12:06:54 | aalbrecht | set | spambayes_score: 0.00409423 -> 0.00409423 messageid: <1214136414.48.0.213530823136.issue1974@psf.upfronthosting.co.za> |
| 2008年06月22日 12:06:53 | aalbrecht | link | issue1974 messages |
| 2008年06月22日 12:06:51 | aalbrecht | create | |