summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8513: os.get_exec_path() supports b'PATH' key and bytes value.Victor Stinner2010-05-186-22/+129
| | | | | | 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
|
* Merged revisions 81286 via svnmerge fromSenthil Kumaran2010-05-181-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81286 | senthil.kumaran | 2010-05-18 19:10:23 +0530 (Tue, 18 May 2010) | 3 lines Doc Fix. Correct link to Zephyr ASDL Abstract page. ........
* Removing the reference in the docs for overriding _urlopener global value. ↵Senthil Kumaran2010-05-181-20/+0
| | | | See Issue8619 for details.
* Merged revisions 81279 via svnmerge fromSenthil Kumaran2010-05-181-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81279 | senthil.kumaran | 2010-05-18 08:50:43 +0530 (Tue, 18 May 2010) | 3 lines Fix minor typo. ........
* 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-175-13/+101
| | | | | | | | | | | | | | 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-172-40/+56
| | | | | | | | | | | | | 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. ........
* Fix test_capi in !pydebug mode, where my original attempt segfaulted withoutJeffrey Yasskin2010-05-171-1/+5
| | | | | producing the expected error message. The test only tests what it's supposed to test in pydebug mode though. Fixes issue 8726.
* 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-172-12/+5
| | | | | | | | | | 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-173-57/+68
| | | | | | | | | | 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
|
* Fix refleak in internal_print() introduced by myself in r81251Victor Stinner2010-05-171-0/+1
| | | | | | _PyUnicode_AsDefaultEncodedString() uses a magical PyUnicode attribute to automatically destroy PyUnicode_EncodeUTF8() result when the unicode string is destroyed.
* handle_system_exit() flushs files to warranty the output orderVictor Stinner2010-05-172-8/+22
| | | | | | 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-173-1/+16
| | | | of strict) error handler to escape surrogates
* Issue #6697: Fix a crash if code of "python -c code" contains surrogatesVictor Stinner2010-05-172-4/+26
|
* 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
|
* Merged revisions 81241 via svnmerge fromAntoine Pitrou2010-05-161-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81241 | antoine.pitrou | 2010-05-17 01:11:46 +0200 (lun., 17 mai 2010) | 4 lines Clear the OpenSSL error queue each time an error is signalled. When the error queue is not emptied, strange things can happen on the next SSL call, depending on the OpenSSL version. ........
* Issue #8477: ssl.RAND_egd() supports str with surrogates and bytes for the pathVictor Stinner2010-05-162-9/+11
|
* Issue #8477: _ssl._test_decode_cert() supports str with surrogates and bytesVictor Stinner2010-05-162-5/+8
| | | | for the filename
* Do not fail if ssl fails to importAntoine Pitrou2010-05-161-4/+5
|
* Fix (hopefully) the remaining test_ssl buildbot failuresAntoine Pitrou2010-05-162-2/+6
|
* 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-167-284/+865
|
* Merged revisions 81229 via svnmerge fromAntoine Pitrou2010-05-161-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81229 | antoine.pitrou | 2010-05-16 16:16:56 +0200 (dim., 16 mai 2010) | 3 lines Document that SSL v2 is insecure. ........
* 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. ........
* Merged revisions 81220 via svnmerge fromVictor Stinner2010-05-152-1237/+1237
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81220 | victor.stinner | 2010-05-16 00:55:28 +0200 (dim., 16 mai 2010) | 4 lines Use 4-spaces for indentation (instead of tabs) in pgen outputs Regenerate (reindent) Python/graminit.c ........
* 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
|
* Recorded merge of revisions 81213 via svnmerge fromVictor Stinner2010-05-151-1994/+1994
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81213 | victor.stinner | 2010-05-16 00:19:27 +0200 (dim., 16 mai 2010) | 5 lines reindent _cursesmodule.c Use untabify.py + emacs (python3 mode) + manual editions for Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS ........
* A test was not guaranteeing cleanup in the face of an exception.Brett Cannon2010-05-151-7/+8
|
* Blocked revisions 81210 via svnmergeAmaury Forgeot d'Arc2010-05-150-0/+0
| | | | | | | | ........ r81210 | amaury.forgeotdarc | 2010-05-15 23:45:30 +0200 (sam., 15 mai 2010) | 2 lines Remove unused variable, and fix a compilation warning on Windows ........
* Issue #8665: Fix `make pycremoval` exiting with non-zero status.Antoine Pitrou2010-05-151-1/+1
|
* Recorded merge of revisions 81205 via svnmerge fromVictor Stinner2010-05-151-12/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81205 | victor.stinner | 2010-05-15 23:00:59 +0200 (sam., 15 mai 2010) | 2 lines NEWS: strip trailing spaces ........
* Remove unused variable, and fix a compilation warning on Windows.Amaury Forgeot d'Arc2010-05-151-1/+1
|
* 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 ........
* fix one more runonBenjamin Peterson2010-05-151-2/+2
|
* rephraseBenjamin Peterson2010-05-151-2/+2
|
* fix run-on sentenceBenjamin Peterson2010-05-151-1/+1
|
* Issue #8692: Improve performance of math.factorial:Mark Dickinson2010-05-153-30/+307
| | | | | | | | | | | | | (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.
* Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a UnicodeVictor Stinner2010-05-1510-26/+46
| | | | | | object to Py_FileSystemDefaultEncoding with the "surrogateescape" error handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set, fall back to UTF-8.
* Enable shortcuts for common encodings in PyUnicode_AsEncodedString() for anyVictor Stinner2010-05-152-23/+34
| | | | error handler, not only the default error handler (strict)
* Issue #8610: Load file system codec at startup, and display a fatal error onVictor Stinner2010-05-154-27/+62
| | | | | failure. Set the file system encoding to utf-8 (instead of None) if getting the locale encoding failed, or if nl_langinfo(CODESET) function is missing.
* 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. ........