summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 81350 via svnmerge fromStefan Krah2010-05-191-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81350 | stefan.krah | 2010-05-19 17:46:39 +0200 (Wed, 19 May 2010) | 1 line Fix typos in docstrings. ........
* Issue #6697: Fix a crash if a keyword contains a surrogateVictor Stinner2010-05-191-0/+14
|
* Merged revisions 81294 via svnmerge fromGiampaolo Rodolà2010-05-182-2/+11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81294 | giampaolo.rodola | 2010-05-18 22:04:31 +0200 (mar, 18 mag 2010) | 1 line Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError in the tuple of expected exception; added test case for asyncore._strerror. ........
* Issue #8513: os.get_exec_path() supports b'PATH' key and bytes value.Victor Stinner2010-05-184-21/+116
| | | | | | subprocess.Popen() and os._execvpe() support bytes program name. Add os.supports_bytes_environ flag: True if the native OS type of the environment is bytes (eg. False on Windows).
* Repair test failure. Bug 8727.Barry Warsaw2010-05-183-3/+13
|
* Fix test_main_invalid_unicode() of test_sys for ASCII locale encodingVictor Stinner2010-05-171-4/+3
| | | | It should fix sparc 3.x and 3.1 failures.
* Issue #8633: Support for POSIX.1-2008 binary pax headers.Lars Gustäbel2010-05-173-10/+93
| | | | | | | | | | | | | | tarfile is now able to read and write pax headers with a "hdrcharset=BINARY" record. This record was introduced in POSIX.1-2008 as a method to store unencoded binary strings that cannot be translated to UTF-8. In practice, this is just a workaround that allows a tar implementation to store filenames that do not comply with the current filesystem encoding and thus cannot be decoded correctly. Additionally, tarfile works around a bug in current versions of GNU tar: undecodable filenames are stored as-is in a pax header without a "hdrcharset" record being added. Technically, these headers are invalid, but tarfile manages to read them correctly anyway.
* Inadvertently removed part of the comment in r81271.Florent Xicluna2010-05-171-1/+1
|
* Issue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes, ↵Florent Xicluna2010-05-171-40/+53
| | | | | | | | | | | | | unquote, unquote_to_bytes. Recorded merge of revisions 81265 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81265 | florent.xicluna | 2010-05-17 15:35:09 +0200 (lun, 17 mai 2010) | 2 lines Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases. ........
* Merged revision 81259 via svnmerge fromFlorent Xicluna2010-05-171-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81259 | florent.xicluna | 2010-05-17 12:39:07 +0200 (lun, 17 mai 2010) | 2 lines Slight style cleanup. ........
* Improve test_exit() error message to analyze sparc failuresVictor Stinner2010-05-171-1/+2
|
* Typo (thanks Arfrever)Antoine Pitrou2010-05-171-1/+1
|
* Merged revisions 81261 via svnmerge fromTarek Ziadé2010-05-171-1/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81261 | tarek.ziade | 2010-05-17 12:54:43 +0200 (Mon, 17 May 2010) | 1 line upgraded distutils docs w.r.t. the manifest regeneration ........
* Merged revisions 81255 via svnmerge fromTarek Ziadé2010-05-172-57/+66
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81255 | tarek.ziade | 2010-05-17 12:06:20 +0200 (Mon, 17 May 2010) | 1 line Fixed #8688: Distutils now recalculates MANIFEST everytime. ........
* Try to fix buildbot failures with old OpenSSLs.Antoine Pitrou2010-05-171-0/+2
|
* handle_system_exit() flushs files to warranty the output orderVictor Stinner2010-05-171-8/+18
| | | | | | PyObject_Print() writes into the C object stderr, whereas PySys_WriteStderr() writes into the Python object sys.stderr. Each object has its own buffer, so call sys.stderr.flush() and fflush(stderr).
* PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (insteadVictor Stinner2010-05-171-0/+10
| | | | of strict) error handler to escape surrogates
* Issue #6697: Fix a crash if code of "python -c code" contains surrogatesVictor Stinner2010-05-171-0/+18
|
* Oops, my patch on subprocess is not merged yet: fix my previous commit on ↵Victor Stinner2010-05-171-4/+1
| | | | test_os
* test_os: cleanup test_internal_execvpe() and os._execvpe() mockupVictor Stinner2010-05-171-48/+53
| | | | | | | | | * Replace os.defpath instead of os.get_exec_path() to test also os.get_exec_path() * Use contextlib.contextmanager, move the mockup outside the class, and the mockup returns directly the call list object * Use two different contexts for the two tests * Use more revelant values and names
* "xyzzy" is not a silly enough name for some OpenSSL versions to report an errorAntoine Pitrou2010-05-161-2/+2
|
* Do not fail if ssl fails to importAntoine Pitrou2010-05-161-4/+5
|
* Fix (hopefully) the remaining test_ssl buildbot failuresAntoine Pitrou2010-05-161-2/+2
|
* Followup on r81233: fix test_ssl with OpenSSL < 1.0.0.Antoine Pitrou2010-05-163-0/+59
|
* Issue #8550: Add first class `SSLContext` objects to the ssl module.Antoine Pitrou2010-05-164-51/+278
|
* Merged revisions 81224 via svnmerge fromVictor Stinner2010-05-161-6/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81224 | victor.stinner | 2010-05-16 02:34:40 +0200 (dim., 16 mai 2010) | 4 lines Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close() fo is not set if the open() fails. ........
* Make test_module_with_large_stack as an expected failure because of a change inBrett Cannon2010-05-151-0/+1
| | | | | importlib that is causing it to fail. Work to fix it is being tracked in issue 8727.
* Fix a comment to state the right thing.Brett Cannon2010-05-151-4/+3
|
* A test was not guaranteeing cleanup in the face of an exception.Brett Cannon2010-05-151-7/+8
|
* Merged revisions 81200 via svnmerge fromBenjamin Peterson2010-05-151-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81200 | benjamin.peterson | 2010-05-15 12:48:55 -0500 (Sat, 15 May 2010) | 1 line use TestCase skip method ........
* Issue #8692: Improve performance of math.factorial:Mark Dickinson2010-05-151-10/+61
| | | | | | | | | | | | | (1) use a different algorithm that roughly halves the total number of multiplications required and results in more balanced multiplications (2) use a lookup table for small arguments (3) fast accumulation of products in C integer arithmetic rather than PyLong arithmetic when possible. Typical speedup, from unscientific testing on a 64-bit laptop, is 4.5x to 6.5x for arguments in the range 100 - 10000. Patch by Daniel Stutzbach; extensive reviews by Alexander Belopolsky.
* Merged revisions 81185 via svnmerge fromStefan Krah2010-05-151-6/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81185 | stefan.krah | 2010-05-15 11:31:08 +0200 (Sat, 15 May 2010) | 4 lines If the timeout is exceeded, count the tests as skipped instead of just issuing a warning. ........
* Fix test_capi for Windows: strip newline charactersVictor Stinner2010-05-151-2/+2
| | | | Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
* Merged revisions 81179 via svnmerge fromVictor Stinner2010-05-141-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81179 | victor.stinner | 2010-05-14 23:52:26 +0200 (ven., 14 mai 2010) | 2 lines Fix regression introduced by r81154 (Issue #5099, subprocess destructor) ........
* Merged revisions 81154 via svnmerge fromBrett Cannon2010-05-141-17/+34
| | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81154 | brett.cannon | 2010-05-13 17:21:48 -0700 (Thu, 13 May 2010) | 15 lines subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to interpreter shutdown semantics. Same issue goes for the methods that __del__ called. Now all the methods capture the global objects it needs as default values to private parameters (could have stuck them on the class object itself, but since the objects have nothing directly to do with the class that seemed wrong). There is no test as making one that works is hard. This patch was verified against a consistently failing test in Mercurial's test suite, though, so it has been tested in some regard. Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel Genellina for writing another patch for the same issue and attempting to write a test. ........
* Merged revisions 81152 via svnmerge fromBrett Cannon2010-05-141-1/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81152 | brett.cannon | 2010-05-13 16:59:41 -0700 (Thu, 13 May 2010) | 3 lines test_site was failing under darwin for non-framework builds because a test was assuming framework-specific site-packages directories were being used. ........
* Make PyErr_Occurred return NULL if there is no current thread. Previously itJeffrey Yasskin2010-05-131-1/+15
| | | | | | | would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite recursion. Fixes issue 3605.
* Merged revisions 81130 via svnmerge fromSenthil Kumaran2010-05-132-2/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines Fix Issue8657 - adding git and git+ssh as know schemes. ........
* Merged revisions 81126 via svnmerge fromMark Dickinson2010-05-121-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81126 | mark.dickinson | 2010-05-12 20:53:36 +0100 (Wed, 12 May 2010) | 1 line Fix unused variable in test_factorial. ........
* Merged revisions 81102 via svnmerge fromGiampaolo Rodolà2010-05-121-6/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81102 | giampaolo.rodola | 2010-05-12 02:29:27 +0200 (mer, 12 mag 2010) | 1 line Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now. ........
* Merged revisions 81098 via svnmerge fromAntoine Pitrou2010-05-111-0/+7
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines Issue #8681: Make the zlib module's error messages more informative when the zlib itself doesn't give any detailed explanation. ........
* Merged revisions 81094 via svnmerge fromAntoine Pitrou2010-05-111-0/+13
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81094 | antoine.pitrou | 2010-05-12 01:32:31 +0200 (mer., 12 mai 2010) | 6 lines Issue #8672: Add a zlib test ensuring that an incomplete stream can be handled by a decompressor object without errors (it returns incomplete uncompressed data). ........
* remove now useless __ne__Benjamin Peterson2010-05-111-3/+0
|
* Merged revisions 81055 via svnmerge fromMichael Foord2010-05-102-6/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81055 | michael.foord | 2010-05-10 21:21:16 +0100 (Mon, 10 May 2010) | 1 line Improving help message for python -m unittest. Issue 8303. ........
* Merged revisions 81043 via svnmerge fromGiampaolo Rodolà2010-05-101-1/+275
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81043 | giampaolo.rodola | 2010-05-10 17:33:22 +0200 (lun, 10 mag 2010) | 1 line Issue #8490: adds a more solid test suite for asyncore ........
* Fix issue #4972: adds ftplib.FTP context manager protocolGiampaolo Rodolà2010-05-102-11/+74
|
* Fix test_urllib2 failure on OS X.Mark Dickinson2010-05-091-1/+1
|
* Merged revisions 81022 via svnmerge fromMichael Foord2010-05-091-0/+45
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81022 | michael.foord | 2010-05-09 11:58:25 +0200 (Sun, 09 May 2010) | 1 line Adding a test for unittest.BaseTestSuite. ........
* Replace /s with os.sep in the new internal_execvpe test. Hopefully fixesGregory P. Smith2010-05-091-5/+8
| | | | this test on windows.
* make condition more specificBenjamin Peterson2010-05-091-1/+2
|