Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #665194: Add a localtime function to email.utils. | R David Murray | 2012-05-26 | 1 | -0/+73 |
| | | | | | | | | 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 Murray | 2012-05-26 | 1 | -0/+22 |
| | | | | | This is a danger of focusing on unit tests: sometimes you forget to do the integration tests. | ||||
* | Implemented PEP 405 (Python virtual environments). | Vinay Sajip | 2012-05-26 | 8 | -8/+160 |
| | |||||
* | #12586: add provisional email policy with new header parsing and folding. | R David Murray | 2012-05-25 | 7 | -105/+3624 |
| | | | | | | | | | | | | | | 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: refactor email policy framework. | R David Murray | 2012-05-25 | 5 | -155/+514 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | Added test for namespace package dynamic path updates. | Eric V. Smith | 2012-05-25 | 1 | -0/+45 |
| | |||||
* | #4841: Fix FileIO constructor to honor closefd when called repeatedly | Hynek Schlawack | 2012-05-25 | 1 | -0/+13 |
|\ | | | | | | | Patch by Victor Stinner. | ||||
| * | #4841: Fix FileIO constructor to honor closefd when called repeatedly | Hynek Schlawack | 2012-05-25 | 1 | -0/+13 |
| | | | | | | | | Patch by Victor Stinner. | ||||
* | | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 17 | -19/+379 |
| | | |||||
* | | Issue #14036: return None when port in urlparse cross 65535 | Senthil Kumaran | 2012-05-24 | 1 | -0/+5 |
|\ \ | |/ | |||||
| * | Issue #14036: return None when port in urlparse cross 65535 | Senthil Kumaran | 2012-05-24 | 1 | -0/+5 |
| | | |||||
* | | Issue #14814: improve docstrings and arguments value handling, as per Terry ↵ | Sandro Tosi | 2012-05-23 | 1 | -0/+18 |
| | | | | | | | | J. Reedy's comments | ||||
* | | #14885: Make support.skip_unless_xattr check also tempfile | Hynek Schlawack | 2012-05-23 | 1 | -10/+18 |
| | | | | | | | | | | | | | | | | | | There is a rare edge case where the filesystem used by the tempfile functions (usually /tmp) doesn't support xattrs while the one used by TESTFN (the current directory, so likely to be below /home) does. This causes the xattr related test_shutil tests fail. skip_unless_xattr now checks both. I have also added skip_unless_xattr to __all__ where it has been missing. | ||||
* | | Close #14136 by cleaning up the PEP 409 command line test (patch by Ethan ↵ | Nick Coghlan | 2012-05-21 | 2 | -52/+20 |
| | | | | | | | | Furman) | ||||
* | | Close #13585: add contextlib.ExitStack to replace the ill-fated ↵ | Nick Coghlan | 2012-05-21 | 1 | -0/+123 |
| | | | | | | | | contextlib.nested API | ||||
* | | Issue #14814: addition of the ipaddress module (stage 1 - code and tests) | Nick Coghlan | 2012-05-20 | 1 | -0/+1142 |
| | | |||||
* | | Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. ↵ | Senthil Kumaran | 2012-05-20 | 1 | -4/+4 |
|\ \ | |/ | | | | | Patch by Federico Reghenzani and Müte Invert | ||||
| * | Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. ↵ | Senthil Kumaran | 2012-05-20 | 1 | -4/+4 |
| | | | | | | | | Patch by Federico Reghenzani and Müte Invert | ||||
* | | Issue #14849: setup Element data members to be assignable in subclasses | Eli Bendersky | 2012-05-20 | 1 | -0/+4 |
| | | |||||
* | | Close #14588: added a PEP 3115 compliant dynamic type creation mechanism | Nick Coghlan | 2012-05-19 | 1 | -1/+250 |
| | | |||||
* | | #14072: merge with 3.2. | Ezio Melotti | 2012-05-19 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | #14072: Fix parsing of tel URIs in urlparse by making the check for ports ↵ | Ezio Melotti | 2012-05-19 | 1 | -0/+7 |
| | | | | | | | | stricter. | ||||
* | | #13152: Allow to specify a custom tabsize for expanding tabs in textwrap | Hynek Schlawack | 2012-05-19 | 1 | -0/+8 |
| | | | | | | | | Patch by John Feuerstein. | ||||
* | | merge - Fix Issue14721: Send Content-length: 0 for empty body () in the ↵ | Senthil Kumaran | 2012-05-19 | 1 | -0/+28 |
|\ \ | |/ | | | | | http.client requests | ||||
| * | Fix Issue14721: Send Content-length: 0 for empty body () in the http.client ↵ | Senthil Kumaran | 2012-05-19 | 1 | -0/+28 |
| | | | | | | | | requests | ||||
* | | Issue9374 - Generic parsing of query and fragment portion of urls for any scheme | Senthil Kumaran | 2012-05-19 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Issue9374 - Generic parsing of query and fragment portion of urls for any scheme | Senthil Kumaran | 2012-05-19 | 1 | -0/+9 |
| | | |||||
* | | #14798: pyclbr now raises ImportError instead of KeyError for missing packages | Petri Lehtinen | 2012-05-18 | 1 | -0/+5 |
|\ \ | |/ | |||||
| * | #14798: pyclbr now raises ImportError instead of KeyError for missing packages | Petri Lehtinen | 2012-05-18 | 1 | -0/+5 |
| | | |||||
* | | Move private function _args_from_interpreter_flags() to subprocess.py, so | Antoine Pitrou | 2012-05-18 | 1 | -2/+1 |
| | | | | | | | | | | that it can be imported when threads are disabled. (followup to issue #12098) | ||||
* | | #12098: Make multiprocessing's child processes inherit sys.flags on Windows | Richard Oudkerk | 2012-05-18 | 2 | -19/+36 |
| | | | | | | | | Initial patch by Sergey Mezentsev. | ||||
* | | Make the test completely clean up after itself. | Antoine Pitrou | 2012-05-17 | 1 | -2/+4 |
| | | |||||
* | | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 3 | -3/+30 |
| | | | | | | | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports. | ||||
* | | Issue #14780: urllib.request.urlopen() now has a `cadefault` argument to use ↵ | Antoine Pitrou | 2012-05-16 | 1 | -0/+7 |
| | | | | | | | | | | | | the default certificate store. Initial patch by James Oakley. | ||||
* | | Issue #14779: Get sizeof(void *) directly rather than relying on sysconfig. | Stefan Krah | 2012-05-16 | 1 | -4/+2 |
| | | |||||
* | | Issue #14693: Under non-Windows platforms, hashlib's fallback modules are ↵ | Antoine Pitrou | 2012-05-16 | 1 | -1/+3 |
| | | | | | | | | always compiled, even if OpenSSL is present at build time. | ||||
* | | merge heads | Giampaolo Rodola' | 2012-05-16 | 2 | -4/+94 |
|\ \ | |||||
| * \ | Forward port additional tests from 2.7 (issue #14829). | Antoine Pitrou | 2012-05-16 | 1 | -3/+44 |
| |\ \ | | |/ | |||||
| | * | Forward port additional tests from 2.7 (issue #14829). | Antoine Pitrou | 2012-05-16 | 1 | -3/+44 |
| | | | |||||
| * | | Merge from 3.2. | Eric V. Smith | 2012-05-16 | 1 | -0/+3 |
| |\ \ | | |/ | |||||
| | * | Cleanup so subsequent tests won't fail. Needs to be moved into a support ↵ | Eric V. Smith | 2012-05-16 | 1 | -0/+3 |
| | | | | | | | | | | | | routine (see 14715). | ||||
| * | | Merge from 3.2. | Eric V. Smith | 2012-05-16 | 1 | -1/+47 |
| |\ \ | | |/ | |||||
| | * | Issue #14817: Add rudimentary tests for pkgutil.extend_path. | Eric V. Smith | 2012-05-16 | 1 | -1/+47 |
| | | | |||||
* | | | #14807: fix BB failures on Windows - avoid to to rely too many details of ↵ | Giampaolo Rodola' | 2012-05-16 | 1 | -11/+22 |
|/ / | | | | | | | the mode string. | ||||
* | | merge heads | Giampaolo Rodola' | 2012-05-15 | 2 | -1/+24 |
|\ \ | |||||
| * | | Add two more sorts to test_os.WalkTests I've missed before | Hynek Schlawack | 2012-05-15 | 1 | -0/+2 |
| | | | |||||
| * | | merge heads | Senthil Kumaran | 2012-05-15 | 1 | -0/+1 |
| |\ \ | |||||
| | * | | Sort file list in test_os.WalkTests | Hynek Schlawack | 2012-05-15 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | Adding new files into the tree lead to buildbot fails as the order wasn't deterministic. | ||||
| * | | | Issue12541 - Add UserWarning for unquoted realms | Senthil Kumaran | 2012-05-15 | 1 | -5/+6 |
| |\ \ \ | | |/ / | |/| / | | |/ | |||||
| | * | Issue12541 - Add UserWarning for unquoted realms | Senthil Kumaran | 2012-05-15 | 1 | -5/+6 |
| | | |