- 14 Nis, 2015 1 kayıt (commit)
-
-
Berker Peksag yazdı
-
- 30 Mar, 2015 1 kayıt (commit)
-
-
R David Murray yazdı
This mimics get_param's error handling for the most part. It is slightly better in some regards as get_param can produce some really weird results for duplicate *0* parts. It departs from get_param slightly in that if we have a mix of non-extended and extended pieces for the same parameter name, the new parser assumes they were all supposed to be extended and concatenates all the values, whereas get_param always picks the non-extended parameter value. All of this error recovery is pretty much arbitrary decisions...
-
- 26 Ock, 2015 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
Patch by Cory Benfield.
-
- 15 Ara, 2014 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 17 Eki, 2014 1 kayıt (commit)
-
-
R David Murray yazdı
It is unlikely anyone is using the fact that the dictionary returned by the 'params' attribute was previously writable, but even if someone is the API is provisional so this kind of change is acceptable (and needed, to get the API "right" before it becomes official). Patch by Stéphane Wirtel.
-
- 20 Eyl, 2014 2 kayıt (commit)
-
-
R David Murray yazdı
Since EmailMessage is a provisional API we can fix API bugs in a maintenance release, but I used a trick suggested by Serhiy to maintain backward compatibility with 3.4.0/1.
-
R David Murray yazdı
-
- 12 Agu, 2014 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
Original patch by Raymond Hettinger.
-
- 04 Agu, 2014 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 23 Tem, 2014 1 kayıt (commit)
-
-
Zachary Ware yazdı
Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
-
- 26 Haz, 2014 1 kayıt (commit)
-
-
R David Murray yazdı
This makes the behavior match that of Parser. Patch by Vajrasky Kok.
-
- 09 Mar, 2014 1 kayıt (commit)
-
-
R David Murray yazdı
More tests of the concrete policy methods would probably be a good idea, but this is a start, and it brings line coverage up to 100% for the policy module. Patch by Milan Oberkirch.
-
- 06 Mar, 2014 1 kayıt (commit)
-
-
R David Murray yazdı
Original patch by Varun Sharma.
-
- 08 Şub, 2014 3 kayıt (commit)
-
-
R David Murray yazdı
This is more RFC compliant (see issue) and fixes a problem with signature verifiers rejecting the part when signed. There is some amount of backward compatibility concern here since it changes the output, but the RFC issue coupled with fixing the problem with signature verifiers seems worth the small risk of breaking code that depends on the current incorrect output.
-
R David Murray yazdı
This applies only to the new parser. The old parser decodes encoded words inside quoted strings already, although it gets the whitespace wrong when it does so. This version of the patch only handles the most common case (a single encoded word surrounded by quotes), but I haven't seen any other variations of this in the wild yet, so its good enough for now.
-
R David Murray yazdı
This is a bit of an ugly hack because of the way generator pieces together the output message. The deepcopys aren't too expensive, though, because we know it is only called on messages that are not multiparts, and the payload (the thing that could be large) is an immutable object. Test and preliminary work on patch by Vajrasky Kok.
-
- 07 Şub, 2014 4 kayıt (commit)
-
-
R David Murray yazdı
This fixes a regression relative to python2.
-
R David Murray yazdı
So passing unicode to set_payload works again (but still doesn't do what you want when the message is serialized).
-
R David Murray yazdı
-
R David Murray yazdı
In 3.5 I will fix this right by adding a message_factory attribute to the policy.
-
- 13 Ock, 2014 1 kayıt (commit)
-
-
R David Murray yazdı
This fixes an edge case (20206) where if the input ended in a character needing encoding but there was no newline on the string, the last byte of the encoded character would be dropped. The fix is to use a more efficient algorithm, provided by Serhiy Storchaka (5803), that does not have the bug.
-
- 23 Ara, 2013 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 13 Ara, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
Patch by Vajrasky Kok, test enhancement by me.
-
- 11 Ara, 2013 2 kayıt (commit)
-
-
R David Murray yazdı
This version of the fix raises an error instead of accepting the invalid input (ie: if a non-ASCII string is used but no charset is specified).
-
R David Murray yazdı
This is a backward compatible partial fix, the complete fix requires raising an error instead of accepting the invalid input, so the real fix is only suitable for 3.4.
-
- 16 Kas, 2013 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 17 Eki, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
This adds EmailMessage and, MIMEPart subclasses of Message with new API methods, and a ContentManager class used by the new methods. Also a new policy setting, content_manager. Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka, and reflects their feedback. I will ideally add some examples of using the new API to the documentation before the final release.
-
- 31 Agu, 2013 1 kayıt (commit)
-
-
Terry Jan Reedy yazdı
-
- 22 Agu, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
This also backs out the previous fixes for for #14360, #1717, and #16564. Those bugs were actually caused by the fact that set_payload didn't decode to str, thus rendering the model inconsistent. This fix does mean the data processed by the encoder functions goes through an extra encode/decode cycle, but it means the model is always consistent. Future API updates will provide a better way to encode payloads, which will bypass this minor de-optimization. Tests by Vajrasky Kok.
-
- 17 Agu, 2013 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 10 Agu, 2013 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 09 Agu, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
This was triggered by wanting to make the doctest in email.policy.rst pass; as_bytes and __bytes__ are clearly useful now that we have BytesGenerator. Also updated the Message docs to document the policy keyword that was added in 3.3.
-
- 25 Tem, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
Patch by Vajrasky Kok.
-
- 16 Tem, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
Patch by Vajrasky Kok.
-
- 15 Tem, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
-
- 12 Tem, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
There is more to be done here in terms of accepting RFC invalid input that some mailers accept, but this covers the valid RFC places where encoded words can occur in structured headers.
-
- 11 Tem, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
The problem was I was only checking for decimal digits after the third '?', not for *hex* digits :(. This changeset also fixes a couple of comment typos, deletes an unused function relating to encoded word parsing, and removed an invalid 'if' test from the folding function that was revealed by the tests written to validate this issue.
-
- 06 Tem, 2013 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 27 Haz, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
There were no tests for the encoders module. encode_base64 worked because it is the default and so got tested implicitly elsewhere, and we use encode_7or8bit internally, so that worked, too. I previously fixed encode_noop, so this fix means that everythign in the encoders module now works, hopefully correctly. Also added an explicit test for encode_base64.
-