[issue11490] subprocess test_leaking_fds_on_error fails if last directory in path is not accessible

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11488] Add writelines test coverage in tempfile

2011-03-13 Thread R. David Murray
R. David Murray added the comment: Patch looks good to me. -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issu

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue1025395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8769] Straightforward usage of email package fails to round-trip

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue8769> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9967] encoded_word regular expression in email.header.decode_header()

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue9967> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1823> ___ ___ Python-bugs-list mailing list Unsub

[issue10574] email.header.decode_header fails if the string contains multiple directives

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue10574> ___ ___ Python-bugs-list m

[issue11021] email MIME-Version headers for each part in multipart message

2011-03-13 Thread R. David Murray
R. David Murray added the comment: Assuming this is correct (I haven't tried looking for the reference yet), I'm leaning toward it being enough of a behavior change that it should not be backported. -- versions: +Python 3.3 -Python 2.7, Python 3.1,

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue5803> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11050] email.utils.getaddresses behavior contradicts RFC2822

2011-03-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue11050> ___ ___ Python-bugs-list m

[issue11496] test_readline fails when readline was installed after running configure (and was not re-run)

2011-03-14 Thread R. David Murray
R. David Murray added the comment: Hmm. It seems to me that in this case the test *should* fail, since it indicates a broken Python installation. How about instead catching the error in the test and calling self.fail with the error and an additional message about making sure configure has

[issue11496] test_readline fails when readline was installed after running configure (and was not re-run)

2011-03-14 Thread R. David Murray
R. David Murray added the comment: MvL explained that there is a configure tests that makes the existence of this routine optional. So the skip is appropriate, but the message should read something like "the clear history tests cannot be run because the clear_history method is not avai

[issue1440472] email.Generator is not idempotent

2011-03-14 Thread R. David Murray
R. David Murray added the comment: Here is a patch that adds a footnote explaining the issue. -- keywords: +patch Added file: http://bugs.python.org/file21117/gen_not_quite_idem.patch ___ Python tracker <http://bugs.python.org/issue1440

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-03-14 Thread R. David Murray
R. David Murray added the comment: The tests for this function are...not sufficient. I don't think I'm comfortable committing a patch without improving the tests. Ideally there would also be a test that the locale does not affect the result, which would need to be skipped if

[issue11496] test_readline fails when readline was installed after running configure (and was not re-run)

2011-03-14 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue11496> ___ ___ Python-bugs-list mailing list Un

[issue11496] test_readline fails when readline was installed after running configure (and was not re-run)

2011-03-14 Thread R. David Murray
R. David Murray added the comment: Thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: crash -> behavior versions: +Python 3.2 ___ Python tracker <http://bugs.python

[issue11021] email MIME-Version headers for each part in multipart message

2011-03-14 Thread R. David Murray
R. David Murray added the comment: Yes, if it is not actually an RFC non-compliance I'd rather not backport it, but I'm not averse to changing it. I'm open to argument about backporting though...if you know of spam filters that actually do count

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-03-14 Thread R. David Murray
R. David Murray added the comment: How does assertRaisesRegex address the use case in issue 3583? -- ___ Python tracker <http://bugs.python.org/issue10

[issue11492] email.header.Header doesn't fold headers

2011-03-14 Thread R. David Murray
R. David Murray added the comment: It exists, but clearly it is broken. I'll look in to it. -- assignee: -> r.david.murray stage: -> needs patch type: -> behavior versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python

[issue8158] Docstring of optparse.OptionParser incomplete

2011-03-14 Thread R. David Murray
R. David Murray added the comment: It looks to me like description is still missing from the docstring, at least on python3 tip. -- ___ Python tracker <http://bugs.python.org/issue8

[issue11511] Proposal for exposing proxy bypass settings in ProxyHandler

2011-03-14 Thread R. David Murray
Changes by R. David Murray : -- stage: -> patch review type: behavior -> feature request ___ Python tracker <http://bugs.python.org/issue11511> ___ ___ Pyth

[issue9667] NetBSD curses KEY_* constants

2011-03-14 Thread R. David Murray
R. David Murray added the comment: I don't think we have any committers who run NetBDS. Can you attach your patch here? I take it the other NetBSD checks are still required? -- nosy: +r.david.murray ___ Python tracker <http://bugs.py

[issue11243] email/message.py str conversion

2011-03-14 Thread R. David Murray
R. David Murray added the comment: Here is a patch that adds tests for the methods I didn't previous have test for. There may still be some headers that I'm not testing for the 'contains binary' case, but this is certainly more comprehensive than we had before. Please

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2011-03-15 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue11555> ___ ___ Python-bugs-list mailing list Un

[issue11556] email.Message.get_payload can handle bytes payloads (minor doc fix)

2011-03-15 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue11556> ___ ___ Python-bugs-list mailing list Un

[issue11554] Port email module's test_email_codecs.py to Python 3

2011-03-15 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2011-03-15 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11555> ___ ___ Python-bugs-list m

[issue11556] email.Message.get_payload can handle bytes payloads (minor doc fix)

2011-03-15 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11556> ___ ___ Python-bugs-list mailin

[issue11556] email.Message.get_payload can handle bytes payloads (minor doc fix)

2011-03-15 Thread R. David Murray
R. David Murray added the comment: Fixed, thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2011-03-15 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue11216] email.message.Message set_charset does not encode properly?

2011-03-15 Thread R. David Murray
R. David Murray added the comment: I've committed the patch as is. We'll address improving the semantics one way or another as part of email6 development. -- resolution: -> fixed stage: patch review -> committed/rejected status

[issue11510] Peephole breaks set unpacking

2011-03-15 Thread R. David Murray
R. David Murray added the comment: Raymond, it looks like you committed this fix separately to the 3.2 branch and the default branch, instead of committing to 3.2 and then merging to default. With svn, this wasn't a big deal, but with mercurial it will leave the 3.2 changeset unmerged

[issue11401] email.header error during .flatten()

2011-03-15 Thread R. David Murray
R. David Murray added the comment: It turns out this is a bug in 3.1, not something introduced by email5.1 in 3.2. The minimum reproducer is stringifying any message containing a header with no body. -- stage: -> needs patch versions: +Python

[issue11298] unittest discovery needs better explanation

2011-03-15 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file21043/issue11298_py2.7.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___ Pytho

[issue11298] unittest discovery needs better explanation

2011-03-15 Thread R. David Murray
R. David Murray added the comment: Drat, I accidentally deleted the patch file. Reattaching. -- nosy: +r.david.murray Added file: http://bugs.python.org/file21234/issue11298_py2.7.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Steffen, these look like different kinds of errors than the one you reported in this ticket. If they are, could you open a new issue? Either way, simple reproducers would be the most helpful. -- ___ Python

[issue11513] Infinite recursion around raising an exception in tarfile

2011-03-16 Thread R. David Murray
R. David Murray added the comment: This fix reveals a second bug. Without this fix, a non-existent file raises an IOError with an appropriate error message, but with the chained exception. After this fix, it raises an error that says 'not a gzip file', which while technically t

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Note that the code in question was changed to the form with the bugs in 3.2, so this fix does not need to be backported to 3.1. The test could be, though. -- components: +Library (Lib) -Interpreter Core title: Infinite recursion around raising an

[issue11548] Passing format= to unpack_archive fails

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- type: crash -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11548> ___ ___ Python-

[issue11557] Increase coverage in logging module

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker <http://bugs.python.org/issue11557> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1559549] ImportError needs attributes for module and file name

2011-03-16 Thread R. David Murray
R. David Murray added the comment: +1 for providing a way to autogenerate the message. -- ___ Python tracker <http://bugs.python.org/issue1559549> ___ ___ Pytho

[issue9298] binary email attachment issue with base64 encoding

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I talked with Barry, who could find no relevant discussions in his email logs. We decided that _bencode was misguided in the first place (this is reinforced by the bug I fixed a year ago where email was stripping the final newline off a body *after

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread R. David Murray
R. David Murray added the comment: We commented out a few of the tests because they took too long to run due to the large default loop count. timeit would have to be further modified to support testing the default, which probably isn't worth it. -- resolution: -> accept

[issue11401] email.header error during .flatten()

2011-03-16 Thread R. David Murray
R. David Murray added the comment: OK, now this bit works like it did in Python2. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue11578> ___ ___ Python-bugs-list mailing list Unsubscri

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue4114> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Steffen, what you are doing in 11243-test is not something that the current email package supports. String input to message_as_string must be ASCII only in email 5.1/python3.2. Likewise for decode_header. To get unicode in to a header, you have to pass

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I'm closing this issue. If you have a specific test case that is still failing, please open a new issue. And thanks for testing this fix. -- resolution: -> fixed stage: patch review -> committed/rejected status: ope

[issue1681333] email.header unicode fix

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I'm rejecting this. There is more than one bug here, but it starts with the fact that ('xxx', None) is treated the same as ('xxx', 'us-ascii'). In the first case it would be nice if a space was used to separate two of th

[issue1681333] email.header unicode fix

2011-03-17 Thread R. David Murray
R. David Murray added the comment: Yes, I can well understand that feeling. I've only relatively recently taken over maintaining the email package. I'm working my way through the old bug queue, and I can only deal with them in the context in which I

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread R. David Murray
R. David Murray added the comment: I don't see a test case here, did you forget to attatch something? Also, in this: elf._msg[n] = email.header.make_header(email.header.decode_header(b)) unless 'b' is an ASCII-only string, it isn&

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: -> test needed type: -> behavior versions: +Python 3.2 ___ Python tracker <http://bugs.python.or

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-17 Thread R. David Murray
R. David Murray added the comment: If the message contains 8bit bytes in a header, then getitem is going to return a Header object. decode_header does not operate on Header objects, as you have observed. Thinking about it some more, having decode_header operate on a Header and return its

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I talked to Martin. He wants the 2.5 mercurial branch to get *exactly* that set of changes that needs to be applied to the svn repository in order for him to build the security release, no more no less. Note that 2.5 goes out of security maintenance in

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Yes, although there may be another answer on the compile bug. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I talked to Martin about this at the sprints. He wants the set of patches in the 2.5 hg repo to be exactly those that he should apply to svn to build the next release, no more no less. If someone wants to propose a patch that fixes the hg compile but does

[issue11594] 2to3 tool does not preserve line-endings

2011-03-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue11594> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread R. David Murray
R. David Murray added the comment: >>> str(u"\u0411") Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u0411' in position 0: ordinal not in range(128) So, clearly

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Well, python3 is probably pushing some people to try to add better unicode support to their python2 versions. I think it is more a question of "is this an easy fix?" or would it require extensive changes to support unicode properly. If it is ea

[issue11589] Additional tests for email module

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Until unittest learns to do parameterized tests, it's nice to have each test be separate so that you can easily see which test cases are failing. (A number of the existing email tests have a lot of tests in each "unit" test, and this can

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I understand what you are saying, and I thought about that, too; but you could say the same thing about any bug fix that makes code work that didn't work before, yet we don't. So I guess you are right that it should be discussed on

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-18 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg131361 ___ Python tracker <http://bugs.python.org/issue11579> ___ ___ Python-bugs-list m

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I understand what you are saying, and I thought about that, too; but you could say the same thing about any bug fix that makes code work that didn't work before, yet we don't. So I guess you are right that it should be discussed on

[issue9874] Message.attach() loses empty attachments

2011-03-18 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue9874> ___ ___ Python-bugs-list mailing list Un

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker <http://bugs.python.org/issue11605> ___ ___ Python-bugs-list mailing list Un

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-19 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.or

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread R. David Murray
R. David Murray added the comment: I can reproduce this just using message_from_binary_file and BytesGenerator on your input file, so thanks for attaching the email. I have a test in the test suite that is *supposed* to test this, but clearly there is a case here that is not being tested

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread R. David Murray
R. David Murray added the comment: Fixed now. Thanks, and sorry for the delay, and the confusion. -- resolution: accepted -> fixed stage: needs patch -> committed/rejected ___ Python tracker <http://bugs.python.org/

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread R. David Murray
R. David Murray added the comment: Gah, I messed up the push. Now I have to backport the doc fix :( -- ___ Python tracker <http://bugs.python.org/issue7

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread R. David Murray
Changes by R. David Murray : -- assignee: skip.montanaro -> r.david.murray status: closed -> open ___ Python tracker <http://bugs.python.org/issue7198> ___ __

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-20 Thread R. David Murray
R. David Murray added the comment: OK, now it's really done (I hope!). -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue7198> ___

[issue11589] Additional tests for email module

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Thanks, Michael! I tweaked the patch slightly: deleted that test-writing-helper check you had marked with the XXX, and renamed the helper test methods to _test_XXX. I also didn't wind up applying it to 2.7 because hg doesn't support merge ma

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.or

[issue11590] email quoprimime.py patch for header_encode of empty string, decode with different eol

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Thanks again, Michael. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Michael, in general your approach looks sound and is much easier to read and comprehend than the original code (which, as the comments say, was never refined from the original quick and dirty hack). However, rather than dynamically defining sub-functions

[issue11661] test_collections.TestNamedTuple.test_source failing on many buildbots after f09f7ab40ce6

2011-03-24 Thread R. David Murray
New submission from R. David Murray : Example: http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%207.2%203.x/builds/1609/steps/test/logs/stdio == FAIL: test_source (test.test_collections.TestNamedTuple

[issue1590744] mail message parsing glitch

2011-03-24 Thread R. David Murray
R. David Murray added the comment: I needed an airplane-trip-sized problem to work on on the way back from PyCon and the sprints, so I tried my hand at "fixing" this. The attached patch is really just a proof of concept. Because it is so invasive of the email package machinery I

[issue975330] Inconsistent newline handling in email module

2011-03-24 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue975330> ___ ___ Python-bugs-list m

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-24 Thread R. David Murray
R. David Murray added the comment: Yes there is a delay. The cron job that creates the link runs every two minutes. Not sure why the delay seems to be longer than that, though. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-24 Thread R. David Murray
R. David Murray added the comment: I turns out that issue 5803 has a patch that also fixes this bug, and the algorithm used there is even more efficient than the one you've developed here. However, it is also not compatible with the email5 version of quoprimime. It could be adapted,

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-24 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11030] regrtest - allow for relative path with --coverdir

2011-03-24 Thread R. David Murray
R. David Murray added the comment: Thanks. Shortened patch by using the fact that os.path.join returns the second component if it is absolute, as discussed on IRC. -- nosy: +r.david.murray resolution: -> fixed stage: patch review -> committed/rejected status: open -> cl

[issue11031] regrtest - --testdir, new command-line option to specify alternative test directory

2011-03-24 Thread R. David Murray
R. David Murray added the comment: Made the same change to the usage of os.path.join. -- nosy: +r.david.murray resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed type: -> feature request ___ Py

[issue11093] test_future - rename not-unittest files to make regrtest.NOTTESTS an empty set

2011-03-24 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread R. David Murray
R. David Murray added the comment: Antoine wrote: > Do you want to keep track of the specificities of each version of the *BSDs? Currently regrtest does, but they are currently all set to the same list of tests. Perhaps a FreeBSD generic that implies all versions, and then if we ever hav

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Thinking about this some more, I now think it is incorrect that an 8bit header causes getitem to return a Header object. I think instead it should be returning the stringified version of the header, including the unknown-8bit encoding. That way

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: It is reasonably likely that the attached patch will fix this. It also removes 3 seconds of fixed overhead from the test. -- keywords: +patch nosy: +r.david.murray stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.3 Added f

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: I documented that? Where? It is true that the fact that all headers will be objects when using the email6 API was one reason I did it this way, but in hindsight I don't think it was the right choice. However, I/we may now be stuck with it, in which

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Heh. OK, so I think we're stuck with it, then. It does mean I don't have to handle certain other edge cases, and can punt more convenient handling of them into email6. I'll make the patch for decode_heade

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: OK, here is the patch. -- keywords: +patch Added file: http://bugs.python.org/file21392/decode_Header.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Theoretically there should be no way to get bytes into that code path. I'm sure there's a way if you try hard enough (I haven't tried directly assigning a byte string as a header value, for example), but they would be broken uses of the AP

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: That could be, certainly. The code is depending on the mtime having a resolution of at least one second. Try making the constant 61 instead of 60. If that doesn't work, try putting the mtime back a lot farther and see if that makes it work If it p

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Hmm. You are right, I wasn't thinking clearly, and I copied that mtime setting call from another test. Now I have no idea why 61 would work, unless the clock between your virthost and your smb server is off by a m

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Could you print out the mtime values that are being set, and the value of self._mbox._last_read? Or, rather, print out the result of calls to os.path.getmtime on the two directories after the mtime is changed

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Hmm. 411-61=350. Three seconds difference looks a little odd. But doesn't explain 60 vs 61 making the difference in the test. Can you change it back to 60 (or even less) and see what the values look like when the test fails? It is interesting

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: All right, so how about I set the add factor to, say, 5, so that if things are mostly in sync it will succeed, and otherwise just ignore your failures :) -- ___ Python tracker <http://bugs.python.org/issue9

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Antoine agreed in IRC that this was an acceptable closure. -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue11681] -b option undocumented

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Are you sure? (see issue 10471). I don't see how -b could do anything in python2, since bytes and string are the same there (and, indeed, from command line experimentation it doesn't seem to). -- nosy: +r.da

[issue11681] -b option undocumented

2011-03-25 Thread R. David Murray
R. David Murray added the comment: rdmurray@hey:~/python/p27>cat temp.py x = bytes('abc') print x print str(x) rdmurray@hey:~/python/p27>./python -bb temp.py abc abc -- ___ Python tracker <http://bugs.py

<    6   7   8   9   10   11   12   13   14   15   >