summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make headerregistry fully part of the provisional api.R David Murray2012-05-277-213/+429
| | | | | | | | | | | | | When I made the checkin of the provisional email policy, I knew that Address and Group needed to be made accessible from somewhere. The more I looked at it, though, the more it became clear that since this is a provisional API anyway, there's no good reason to hide headerregistry as a private API. It was designed to ultimately be part of the public API, and so it should be part of the provisional API. This patch fully documents the headerregistry API, and deletes the abbreviated version of those docs I had added to the provisional policy docs.
* Changed executable name computation in test_venv to allow for debug executables.Vinay Sajip2012-05-271-2/+1
|
* Refined venv tests.Vinay Sajip2012-05-271-9/+26
|
* Add '__all__' to _encoded_words and mark QByteMap as private.R David Murray2012-05-271-2/+12
|
* Fixed _sys_home computation and added diagnostics for Windows buildbot failures.Vinay Sajip2012-05-273-2/+8
|
* Close #14857: fix regression in references to PEP 3135 implicit __class__ ↵Nick Coghlan2012-05-277-17/+45
| | | | closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue
* Tweak importlib._bootstrap to avoid zero-argument super so I can work on ↵Nick Coghlan2012-05-272-1858/+1862
| | | | issue #14857 without breaking imports
* Fix markup.Georg Brandl2012-05-271-1/+1
|
* Merge with 3.2 #10635 whitespaceTerry Jan Reedy2012-05-271-1/+1
|\
| * #10365 Trim trailing whitespaceTerry Jan Reedy2012-05-271-1/+1
| |
* | Merge with 3.2Terry Jan Reedy2012-05-273-6/+17
|\ \ | |/ | | | | | | Issue #10365: File open dialog now works instead of crashing even when parent window is closed. Patch by Roger Serwy.
| * Issue #10365: File open dialog now works instead of crashingTerry Jan Reedy2012-05-273-6/+17
| | | | | | | | even when parent window is closed. Patch by Roger Serwy.
* | Make multiprocessing's shared memory use memoryview instead of raw pointerRichard Oudkerk2012-05-263-26/+5
| |
* | Merge Issue #14876: Use user-selected font for highlight configuration.Terry Jan Reedy2012-05-262-2/+6
|\ \ | |/ | | | | Patch by Roger Serwy.
| * Issue #14876: Use user-selected font for highlight configuration.Terry Jan Reedy2012-05-262-2/+6
| | | | | | | | Patch by Roger Serwy.
* | Merged upstream changes.Vinay Sajip2012-05-2615-1530/+2147
|\ \
| * | #8739: upgrade smtpd to RFC 5321 and 1870.R David Murray2012-05-267-91/+482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | smtpd now handles EHLO and has infrastructure for extended smtp command mode. The SIZE extension is also implemented. In order to support parameters on MAIL FROM, the RFC 5322 parser from the email package is used to parse the address "token". Logging subclasses things and overrides __init__, so it was necessary to update those __init__ functions in the logging tests to make the logging tests pass. The original suggestion and patch were by Alberto Trevino. Juhana Jauhiainen added the --size argument and SIZE parameter support. Michele Orrù improved the patch and added more tests. Dan Boswell conditionalized various bits of code on whether or not we are in HELO or EHLO mode, as well as some other improvements and tests. I finalized the patch and added the address parsing.
| * | Recognize '<>' as a special case of an angle-addr in header_value_parser.R David Murray2012-05-262-2/+25
| | | | | | | | | | | | | | | | | | | | | Although '<>' is invalid according to RFC 5322, SMTP uses it for various things, and it sometimes ends up in email headers. This patch changes get_angle_addr to recognize it and just register a Defect instead of raising a parsing error.
| * | Remove some redundant decorators.Brett Cannon2012-05-262-1307/+1302
| | |
| * | Issue #14814: Add a basic ipaddress tutorial (thanks to Sandro Tosi for the ↵Nick Coghlan2012-05-262-0/+292
| | | | | | | | | | | | initial conversion from Peter Moody's wiki version)
| * | Issue #14814: Clean out an obsolete property and method from ipaddress ↵Nick Coghlan2012-05-262-14/+2
| | | | | | | | | | | | Network objects
| * | Issue #14814: Cleanup ipaddress header commentsNick Coghlan2012-05-262-28/+2
| | |
| * | Issue #14814: In the spirit of TOOWTDI, ditch the redundant version ↵Nick Coghlan2012-05-262-94/+48
| | | | | | | | | | | | parameter to the factory functions by using the appropriate direct class references instead
* | | Addressed some buildbot errors and comments on the checkin by Antoine on ↵Vinay Sajip2012-05-264-58/+51
|/ / | | | | | | python-dev.
* | #14814: Some PEP8 adjustments and dead code weedingHynek Schlawack2012-05-261-27/+17
| |
* | Add missing versionadded.Georg Brandl2012-05-261-0/+6
| |
* | #665194: Add a localtime function to email.utils.R David Murray2012-05-265-2/+146
| | | | | | | | | | | | | | | | Without this function people would be tempted to use the other date functions in email.utils to compute an aware localtime, and those functions are not as good for that purpose as this code. The code is Alexander Belopolsy's from his proposed patch for issue 9527, with a fix (and additional tests) by Brian K. Jones.
* | #12586: Fix a small oversight in the new email policy header setting code.R David Murray2012-05-262-1/+23
| | | | | | | | | | This is a danger of focusing on unit tests: sometimes you forget to do the integration tests.
* | Merged upstream changes.Vinay Sajip2012-05-263-1/+110
|\ \
| * | Add news entries for #14731 and #12586.R David Murray2012-05-261-0/+8
| | |
| * | #12586: Expand What's New email entry with provisional policy features.R David Murray2012-05-261-0/+96
| | |
| * | Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just ↵Senthil Kumaran2012-05-262-1/+4
| |\ \ | | |/ | | | | | | have ascii in help msg
| | * Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just ↵Senthil Kumaran2012-05-262-1/+4
| | | | | | | | | | | | have ascii in help msg
* | | Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-2641-66/+1454
| | |
* | | Updated .hgeol for additional binaries.Vinay Sajip2012-05-261-0/+2
|/ /
* | #12586: add provisional email policy with new header parsing and folding.R David Murray2012-05-2516-116/+6994
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When the new policies are used (and only when the new policies are explicitly used) headers turn into objects that have attributes based on their parsed values, and can be set using objects that encapsulate the values, as well as set directly from unicode strings. The folding algorithm then takes care of encoding unicode where needed, and folding according to the highest level syntactic objects. With this patch only date and time headers are parsed as anything other than unstructured, but that is all the helper methods in the existing API handle. I do plan to add more parsers, and complete the set specified in the RFC before the package becomes stable.
* | #14731: add preliminary What's New entry for policy framework.R David Murray2012-05-251-0/+55
| |
* | #14731: refactor email policy framework.R David Murray2012-05-2515-517/+1389
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch primarily does two things: (1) it adds some internal-interface methods to Policy that allow for Policy to control the parsing and folding of headers in such a way that we can construct a backward compatibility policy that is 100% compatible with the 3.2 API, while allowing a new policy to implement the email6 API. (2) it adds that backward compatibility policy and refactors the test suite so that the only differences between the 3.2 test_email.py file and the 3.3 test_email.py file is some small changes in test framework and the addition of tests for bugs fixed that apply to the 3.2 API. There are some additional teaks, such as moving just the code needed for the compatibility policy into _policybase, so that the library code can import only _policybase. That way the new code that will be added for email6 will only get imported when a non-compatibility policy is imported.
* | capitialize utime statusesBenjamin Peterson2012-05-251-20/+20
| |
* | capitialize enum membersBenjamin Peterson2012-05-251-17/+17
| |
* | Placeholder in What's New for the major packaging infrastructure changesNick Coghlan2012-05-251-0/+20
| |
* | Added test for namespace package dynamic path updates.Eric V. Smith2012-05-251-0/+45
| |
* | Issue #14548: Make multiprocessing finalizers check pid before runningRichard Oudkerk2012-05-252-3/+12
| | | | | | | | This protects from possibilty of gc running just after fork.
* | Issue #12091: simplify ApplyResult and MapResult with threading.EventRichard Oudkerk2012-05-251-30/+9
| | | | | | | | Patch by Charles-François Natali
* | MergeRichard Oudkerk2012-05-251-1/+2
|\ \ | |/
| * Issue #14881: Allow normal non-main thread to spawn a dummy processRichard Oudkerk2012-05-251-1/+2
| | | | | | | | Fix suggested by Itay Brandes
* | #4841: Fix FileIO constructor to honor closefd when called repeatedlyHynek Schlawack2012-05-252-3/+20
|\ \ | |/ | | | | Patch by Victor Stinner.
| * #4841: Fix FileIO constructor to honor closefd when called repeatedlyHynek Schlawack2012-05-252-3/+20
| | | | | | | | Patch by Victor Stinner.
* | use PyDict_ContainsBenjamin Peterson2012-05-251-3/+3
| |
* | return NULL on errorBenjamin Peterson2012-05-251-2/+3
| |