Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #14814: ipaddress: refactor dup code, minor janitoring, bump coverage | Hynek Schlawack | 2012-06-05 | 1 | -28/+148 |
| | | | | | | | | - remove duplicate netmask/hostmask code - make two ifs more pythonic - remove packed property for networks - some minor pep8 stuff - Test coverage is now at 97%, the rest are mostly unreachable safeguards. | ||||
* | Issue #14711: os.stat_float_times() has been deprecated. | Victor Stinner | 2012-06-04 | 1 | -2/+6 |
| | |||||
* | Add a function lzma.open(), to match gzip.open() and bz2.open(). | Nadeem Vawda | 2012-06-04 | 1 | -0/+101 |
| | |||||
* | Allow LZMAFile to accept modes with a "b" suffix. | Nadeem Vawda | 2012-06-04 | 1 | -2/+17 |
| | |||||
* | Simplify usage of LZMAFile's fileobj support, like with BZ2File. | Nadeem Vawda | 2012-06-04 | 1 | -120/+110 |
| | |||||
* | Add a function bz2.open(), to match gzip.open(). | Nadeem Vawda | 2012-06-04 | 1 | -11/+106 |
| | |||||
* | Make BZ2File's fileobj support easier to use. | Nadeem Vawda | 2012-06-04 | 1 | -13/+27 |
| | | | | | The fileobj argument was added during the 3.3 development cycle, so this change does not break backward compatibility with 3.2. | ||||
* | Add fileobj support to gzip.open(). | Nadeem Vawda | 2012-06-04 | 1 | -0/+13 |
| | |||||
* | #8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd. | R David Murray | 2012-06-04 | 1 | -0/+2 |
| | | | | | This clears up an error in detected by refleak mode that showed up when test_smtplib was run after test_smtpd in the same refleak run. | ||||
* | #14814: Remove dead code from ipaddress | Hynek Schlawack | 2012-06-04 | 1 | -0/+16 |
| | | | | | _BaseNetwork contained (faulty) methods for creating string representations. I've fixed them and put them to use by eliminating identical overrides. | ||||
* | Whitespace normalization | Barry Warsaw | 2012-06-04 | 1 | -1/+1 |
| | |||||
* | PEP 421 requires that .name be lower case. | Barry Warsaw | 2012-06-04 | 1 | -0/+4 |
| | |||||
* | Trunk merge. | Barry Warsaw | 2012-06-04 | 2 | -0/+26 |
|\ | |||||
| * | #14814: Use correct comparison for IP addresses | Hynek Schlawack | 2012-06-04 | 1 | -0/+1 |
| | | | | | | | | | | ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which fails. | ||||
| * | Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError | Gregory P. Smith | 2012-06-03 | 1 | -0/+25 |
| |\ | | | | | | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not. | ||||
| | * | Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError | Gregory P. Smith | 2012-06-03 | 1 | -6/+34 |
| | | | | | | | | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not. | ||||
| | * | Added test skip under Windows, as not applicable there. | Vinay Sajip | 2012-05-31 | 1 | -0/+1 |
| | | | |||||
* | | | Eric Snow's implementation of PEP 421. | Barry Warsaw | 2012-06-03 | 2 | -1/+160 |
|/ / | | | | | | | Issue 14673: Add sys.implementation | ||||
* | | #2658: Add test for issue fixed by fix for #1079. | R David Murray | 2012-06-03 | 1 | -0/+10 |
| | | |||||
* | | #1079: Fix parsing of encoded words. | R David Murray | 2012-06-02 | 2 | -14/+67 |
| | | | | | | | | | | | | | | | | | | This is a behavior change: before this leading and trailing spaces were stripped from ASCII parts, now they are preserved. Without this fix we didn't parse the examples in the RFC correctly, so I think breaking backward compatibility here is justified. Patch by Ralf Schlatterbeck. | ||||
* | | Fix sporadic failure of test_time.test_process_time() on Windows | Victor Stinner | 2012-06-01 | 1 | -2/+5 |
| | | | | | | | | Use a threshold of 20 ms instead of 10 ms. | ||||
* | | #14814: Fix errror message creation in ipaddress.collapse_addresses | Hynek Schlawack | 2012-06-01 | 1 | -4/+11 |
| | | |||||
* | | Close #14969: Improve the handling of exception chaining in contextlib.ExitStack | Nick Coghlan | 2012-06-01 | 1 | -11/+18 |
| | | |||||
* | | Issue #14007: implement doctype() method calling in XMLParser of _elementtree. | Eli Bendersky | 2012-06-01 | 1 | -1/+18 |
| | | | | | | | | Includes exposing a doctype handler from expat through pyexpat. | ||||
* | | Issue #14007: make XMLParser a real subclassable type exported from ↵ | Eli Bendersky | 2012-06-01 | 1 | -0/+29 |
| | | | | | | | | _elementtree. +cleanups | ||||
* | | Don't use metaclasses when class decorators can do the job. | R David Murray | 2012-05-31 | 4 | -41/+44 |
| | | | | | | | | | | Thanks to Nick Coghlan for pointing out that I'd forgotten about class decorators. | ||||
* | | Close #14963: Use an iterative algorithm in contextlib.ExitStack.__exit__ ↵ | Nick Coghlan | 2012-05-31 | 1 | -0/+6 |
| | | | | | | | | (Patch by Alon Horev) | ||||
* | | Issue #14963: Added test cases for contextlib.ExitStack exception handling ↵ | Nick Coghlan | 2012-05-31 | 1 | -0/+89 |
| | | | | | | | | behaviour (Initial patch by Alon Horev) | ||||
* | | Make parameterized tests in email less hackish. | R David Murray | 2012-05-31 | 4 | -93/+122 |
| | | | | | | | | | | Or perhaps more hackish, depending on your perspective. But at least this way it is now possible to run the individual tests using the unittest CLI. | ||||
* | | Issue #14007: implemented the 'element_factory' feature of TreeBuilder in | Eli Bendersky | 2012-05-30 | 1 | -4/+14 |
| | | | | | | | | _elementtree, with a test. | ||||
* | | #14796: fix failure of new calendar test on windows. | R David Murray | 2012-05-30 | 1 | -2/+3 |
| | | |||||
* | | Reapplied skip logic for test on Windows, which appears to have been lost ↵ | Vinay Sajip | 2012-05-29 | 1 | -0/+1 |
| | | | | | | | | during a merge. | ||||
* | | Updated test to reflect renamed file. | Vinay Sajip | 2012-05-29 | 1 | -1/+1 |
| | | |||||
* | | #14796: improve calendar test coverage. | R David Murray | 2012-05-29 | 1 | -9/+211 |
| | | | | | | | | Patch by Oleg Plakhotnyuk. | ||||
* | | #10839: add new test file that was omitted from checkin | R David Murray | 2012-05-29 | 1 | -0/+18 |
| | | |||||
* | | Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and ↵ | Eli Bendersky | 2012-05-29 | 1 | -0/+14 |
| | | | | | | | | subclassable. | ||||
* | | #14835: Make plistlib output empty arrays & dicts like OS X | Hynek Schlawack | 2012-05-29 | 1 | -0/+6 |
| | | | | | | | | Patch by Sidney San Martín. | ||||
* | | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree. | Eli Bendersky | 2012-05-29 | 1 | -1/+65 |
| | | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti. | ||||
* | | Refactor test_email/test_pickleable and add tests for date headers | R David Murray | 2012-05-29 | 1 | -28/+59 |
| | | |||||
* | | Regularize test_email/test_headerregistry's references to policy. | R David Murray | 2012-05-29 | 1 | -6/+6 |
| | | |||||
* | | Refactor test_email/test_defect_handling. | R David Murray | 2012-05-29 | 2 | -179/+162 |
| | | |||||
* | | Issue #14930: Make memoryview objects weakrefable. | Richard Oudkerk | 2012-05-28 | 2 | -1/+16 |
| | | |||||
* | | Fixed typo. | Vinay Sajip | 2012-05-28 | 1 | -1/+1 |
| | | |||||
* | | Tweaked tests to use launcher executable name on OS X. | Vinay Sajip | 2012-05-28 | 1 | -1/+5 |
| | | |||||
* | | #12515: email now registers a defect if the MIME end boundary is missing. | R David Murray | 2012-05-28 | 1 | -0/+33 |
| | | | | | | | | | | | | This commit also restores the news item for 167256 that it looks like Terry inadvertently deleted. (Either that, or I don't understand now merging works...which is equally possible.) | ||||
* | | #1672568: email now registers defects for base64 payload format errors. | R David Murray | 2012-05-28 | 3 | -268/+324 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which also means that it is now producing *something* for any base64 payload, which is what leads to the couple of older test changes in test_email. This is a slightly backward incompatible behavior change, but the new behavior is so much more useful than the old (you can now *reliably* detect errors, and any program that was detecting errors by sniffing for a base64 return from get_payload(decode=True) and then doing its own error-recovery decode will just get the error-recovery decode right away). So this seems to me to be worth the small risk inherent in this behavior change. This patch also refactors the defect tests into a separate test file, since they are no longer just parser tests. | ||||
* | | #14925: email now registers a defect for missing header/body separator. | R David Murray | 2012-05-28 | 2 | -11/+39 |
| | | | | | | | | | | | | | | This patch also deprecates the MalformedHeaderDefect. My best guess is that this defect was rendered obsolete by a refactoring of the parser, and the corresponding defect for the new parser (which this patch introduces) was overlooked. | ||||
* | | Make headerregistry fully part of the provisional api. | R David Murray | 2012-05-27 | 3 | -36/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Sajip | 2012-05-27 | 1 | -2/+1 |
| | | |||||
* | | Refined venv tests. | Vinay Sajip | 2012-05-27 | 1 | -9/+26 |
| | |