]>
granicus.if.org Git - python/log
Jason R. Coombs [Sat, 16 Nov 2013 00:38:51 +0000 (19:38 -0500)]
Use preferred assertEqual
Jason R. Coombs [Sat, 16 Nov 2013 00:35:05 +0000 (19:35 -0500)]
Use preferred assertEqual form. Correct indentation.
Jason R. Coombs [Sat, 16 Nov 2013 00:24:07 +0000 (19:24 -0500)]
Issue #7408: Forward port limited test from Python 2.7, fixing failing buildbot tests on BSD-based platforms.
Victor Stinner [Sat, 16 Nov 2013 00:22:04 +0000 (01:22 +0100)]
calculate_path() now fails with a fatal error when it fails to allocate memory
for module_search_path. It was already the case on _Py_char2wchar() failure.
Andrew Kuchling [Sun, 10 Nov 2013 23:11:00 +0000 (18:11 -0500)]
Issue #19544 and Issue #1180: Restore global option to ignore ~/.pydistutils.cfg in Distutils, accidentally removed in backout of distutils2 changes.
Victor Stinner [Fri, 15 Nov 2013 23:45:54 +0000 (00:45 +0100)]
Don't mix wide character strings and byte strings (L"lib/python" VERSION): use
_Py_char2wchar() to decode lib_python instead.
Some compilers don't support concatenating literals: L"wide" "bytes". Example:
IRIX compiler.
Victor Stinner [Fri, 15 Nov 2013 23:27:16 +0000 (00:27 +0100)]
Fix compiler warnings on Windows 64 bit: add an explicit cast from Py_ssize_t
to int, password.len was checked for being smaller than INT_MAX.
Victor Stinner [Fri, 15 Nov 2013 23:18:58 +0000 (00:18 +0100)]
Fix sock_recvfrom_guts(): recvfrom() size is limited to an int on Windows, not
on other OSes!
Victor Stinner [Fri, 15 Nov 2013 23:17:22 +0000 (00:17 +0100)]
Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
Py_ssize_t, not int
Victor Stinner [Fri, 15 Nov 2013 23:16:58 +0000 (00:16 +0100)]
Fix compiler warning on Windows 64-bit: asdl_seq_SET() stores the index parameter
into a Py_ssize_t, instead of an int
Victor Stinner [Fri, 15 Nov 2013 23:13:29 +0000 (00:13 +0100)]
Fix compiler warning (on Windows 64-bit): explicit cast Py_ssize_t to unsigned
char, n is in range [0; 255] (a tuple cannot have a negative length)
Victor Stinner [Fri, 15 Nov 2013 22:26:25 +0000 (23:26 +0100)]
Fix compiler warning in win32_urandom(): explicit cast to DWORD in
CryptGenRandom()
Victor Stinner [Fri, 15 Nov 2013 22:21:11 +0000 (23:21 +0100)]
Fix compiler warning (especially on Windows 64-bit): don't truncate Py_ssize_t
to int
Victor Stinner [Fri, 15 Nov 2013 22:16:15 +0000 (23:16 +0100)]
Fix compiler warning on Windows 64-bit: explicit cast size_t to unsigned long
Victor Stinner [Fri, 15 Nov 2013 22:13:17 +0000 (23:13 +0100)]
Issue #19544, #6516: no need to catch AttributeError on import pwd/grp
Christian Heimes [Fri, 15 Nov 2013 22:08:21 +0000 (23:08 +0100)]
Issue #19544 and Issue #6516: quick workaround for failing builds
Vinay Sajip [Fri, 15 Nov 2013 20:58:47 +0000 (20:58 +0000)]
Issue #19504: Used American spelling for 'customize'.
Vinay Sajip [Fri, 15 Nov 2013 20:58:13 +0000 (20:58 +0000)]
Issue #19504: Used American spelling for 'customize'.
Vinay Sajip [Fri, 15 Nov 2013 20:42:47 +0000 (20:42 +0000)]
Closes #19523: Merged fix from 3.3.
Vinay Sajip [Fri, 15 Nov 2013 20:40:27 +0000 (20:40 +0000)]
Issue #19523: Closed FileHandler leak which occurred when delay was set.
Andrew Kuchling [Fri, 15 Nov 2013 18:01:52 +0000 (13:01 -0500)]
Issue #19544 and Issue #6516: Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516.
Victor Stinner [Fri, 15 Nov 2013 17:14:33 +0000 (18:14 +0100)]
(Merge 3.3) fileutils.c: use MAXPATHLEN instead of PATH_MAX
PATH_MAX is not declared on IRIX nor Windows.
Victor Stinner [Fri, 15 Nov 2013 17:14:11 +0000 (18:14 +0100)]
fileutils.c: use MAXPATHLEN instead of PATH_MAX
PATH_MAX is not declared on IRIX nor Windows.
Victor Stinner [Fri, 15 Nov 2013 16:35:31 +0000 (17:35 +0100)]
(Merge 3.3) sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get
the size of the fullpath buffer, not PATH_MAX. fullpath is declared using
MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on
IRIX.
Victor Stinner [Fri, 15 Nov 2013 16:33:43 +0000 (17:33 +0100)]
sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get the size of
the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or
MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX.
Victor Stinner [Fri, 15 Nov 2013 16:12:14 +0000 (17:12 +0100)]
(Merge 3.3) pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get
the size of the env_home buffer, not PATH_MAX+1. env_home is declared using
MAXPATHLEN+1, and PATH_MAX is not declared on IRIX.
Victor Stinner [Fri, 15 Nov 2013 16:09:24 +0000 (17:09 +0100)]
pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get the size of
the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1,
and PATH_MAX is not declared on IRIX.
Guido van Rossum [Fri, 15 Nov 2013 15:41:10 +0000 (07:41 -0800)]
asyncio: Longer timeout in Windows test_popen. Fixes issue 19598.
Nick Coghlan [Fri, 15 Nov 2013 14:35:34 +0000 (00:35 +1000)]
Avoid triggering the refleak detector
Nick Coghlan [Fri, 15 Nov 2013 14:34:13 +0000 (00:34 +1000)]
Don't decref exc too soon
Nick Coghlan [Fri, 15 Nov 2013 11:47:37 +0000 (21:47 +1000)]
Close 19609: narrow scope of codec exc chaining
Guido van Rossum [Fri, 15 Nov 2013 00:16:29 +0000 (16:16 -0800)]
asyncio: Refactor waitpid mocks. Patch by Anthony Baire.
Serhiy Storchaka [Thu, 14 Nov 2013 21:49:58 +0000 (23:49 +0200)]
Issue #19592: Use specific asserts in lib2to3 tests.
Victor Stinner [Thu, 14 Nov 2013 21:38:52 +0000 (22:38 +0100)]
Issue #19437: Fix init_builtin(), handle _PyImport_FindExtensionObject()
failure
Victor Stinner [Thu, 14 Nov 2013 21:31:41 +0000 (22:31 +0100)]
Issue #19429, #19437: fix error handling in the OSError constructor
Victor Stinner [Thu, 14 Nov 2013 20:37:05 +0000 (21:37 +0100)]
Issue #19437: Fix parse_envlist() of the posix/nt module, don't call
PyMapping_Values() with an exception set, exit immediatly on error.
Victor Stinner [Thu, 14 Nov 2013 20:29:34 +0000 (21:29 +0100)]
Issue #19437: Fix parse_save_field() of the csv module, handle PyList_Append()
failure
Serhiy Storchaka [Thu, 14 Nov 2013 21:50:51 +0000 (23:50 +0200)]
Issue #19592: Use specific asserts in lib2to3 tests.
Serhiy Storchaka [Thu, 14 Nov 2013 21:10:51 +0000 (23:10 +0200)]
Issue #19589: Use specific asserts in asyncio tests.
Guido van Rossum [Thu, 14 Nov 2013 18:06:18 +0000 (10:06 -0800)]
asyncio: Avoid ResourceWarning. Fix issue 19580 by Vajrasky Kok.
Stefan Krah [Thu, 14 Nov 2013 14:35:47 +0000 (15:35 +0100)]
Add unused third arg for the benefit of Valgrind.
Benjamin Peterson [Thu, 14 Nov 2013 04:49:49 +0000 (23:49 -0500)]
fix refleaks
Benjamin Peterson [Thu, 14 Nov 2013 04:25:01 +0000 (23:25 -0500)]
adjust style
Guido van Rossum [Thu, 14 Nov 2013 04:17:52 +0000 (20:17 -0800)]
asyncio: Relax timing requirement. Fixes issue 19579.
Christian Heimes [Thu, 14 Nov 2013 00:48:32 +0000 (01:48 +0100)]
merge
Christian Heimes [Thu, 14 Nov 2013 00:47:14 +0000 (01:47 +0100)]
Issue #17828: _PyObject_GetDictPtr() may return NULL instead of a PyObject**
CID
1128792 : Dereference null return value (NULL_RETURNS)
Christian Heimes [Thu, 14 Nov 2013 00:39:35 +0000 (01:39 +0100)]
Issue #17828: va_start() must be accompanied by va_end()
CID
1128793 : Missing varargs init or cleanup (VARARGS)
Victor Stinner [Thu, 14 Nov 2013 00:27:12 +0000 (01:27 +0100)]
Issue #19437: Fix array.buffer_info(), handle PyLong_FromVoidPtr() and
PyLong_FromLong() failure
Victor Stinner [Thu, 14 Nov 2013 00:26:17 +0000 (01:26 +0100)]
Issue #19437: Use an identifier for "__name__" string in pickle to improve
error handling
The following code didn't handle correctly the failure of
PyUnicode_InternFromString("__name__").
if (newobj_str == NULL) {
newobj_str = PyUnicode_InternFromString("__newobj__");
name_str = PyUnicode_InternFromString("__name__");
if (newobj_str == NULL || name_str == NULL)
return -1;
}
Victor Stinner [Thu, 14 Nov 2013 00:21:00 +0000 (01:21 +0100)]
Issue #19437: Fix fold_unaryops_on_constants() of the peephole optimizer, clear
the exception when PyList_Append() fails
Guido van Rossum [Wed, 13 Nov 2013 23:50:08 +0000 (15:50 -0800)]
asyncio: Fix from Anthony Baire for CPython issue 19566 (replaces earlier fix).
Ethan Furman [Wed, 13 Nov 2013 22:25:45 +0000 (14:25 -0800)]
removed Enum.__eq__ as it added nothing
Guido van Rossum [Wed, 13 Nov 2013 19:08:34 +0000 (11:08 -0800)]
asyncio: Temporary fix by Victor Stinner for issue 19566.
Nick Coghlan [Wed, 13 Nov 2013 14:24:31 +0000 (00:24 +1000)]
Issue #17839: mention base64 change in What's New
Nick Coghlan [Wed, 13 Nov 2013 13:49:21 +0000 (23:49 +1000)]
Close #17828: better handling of codec errors
- output type errors now redirect users to the type-neutral
convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
will now be automatically wrapped in exceptions that give
the name of the codec involved
Victor Stinner [Wed, 13 Nov 2013 13:17:30 +0000 (14:17 +0100)]
Don't use deprecated function PyUnicode_GET_SIZE()
Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
Victor Stinner [Wed, 13 Nov 2013 12:29:37 +0000 (13:29 +0100)]
Issue #19437: Fix ctypes, handle PyCData_GetContainer() and GetKeepedObjects()
failures
Victor Stinner [Wed, 13 Nov 2013 12:24:50 +0000 (13:24 +0100)]
Issue #19437: Fix GetKeepedObjects() of ctypes, handle PyCData_GetContainer()
failure
Victor Stinner [Wed, 13 Nov 2013 12:23:35 +0000 (13:23 +0100)]
Issue #19437: Fix PyCData_GetContainer() of ctypes, handle PyDict_New() failure
Victor Stinner [Wed, 13 Nov 2013 11:11:36 +0000 (12:11 +0100)]
Issue #19437: Fix PyImport_ImportModuleLevelObject(), handle
PyUnicode_Substring() failure (ex: MemoryError)
Nick Coghlan [Wed, 13 Nov 2013 12:24:58 +0000 (22:24 +1000)]
Avoid global side effect in test_ensurepip
Nick Coghlan [Wed, 13 Nov 2013 12:10:16 +0000 (22:10 +1000)]
Fix test_socket for repr update
Giampaolo Rodola' [Tue, 12 Nov 2013 22:09:01 +0000 (23:09 +0100)]
merge
Giampaolo Rodola' [Tue, 12 Nov 2013 22:08:27 +0000 (23:08 +0100)]
test.support: considering the module is a mix of utilities unrelated with each other divide __all__ in sub-sections so that it can be used as a quick-reference doc
Victor Stinner [Tue, 12 Nov 2013 20:44:18 +0000 (21:44 +0100)]
Issue #19515: Remove duplicated identifiers in zipimport.c
Victor Stinner [Tue, 12 Nov 2013 20:39:02 +0000 (21:39 +0100)]
Issue #19515: Remove identifiers duplicated in the same file.
Patch written by Andrei Dorian Duma.
Victor Stinner [Tue, 12 Nov 2013 16:18:51 +0000 (17:18 +0100)]
Issue #19466: Fix typo. Patch written by Vajrasky Kok.
Victor Stinner [Tue, 12 Nov 2013 15:37:55 +0000 (16:37 +0100)]
Close #19466: Clear the frames of daemon threads earlier during the Python
shutdown to call objects destructors. So "unclosed file" resource warnings are
now corretly emitted for daemon threads.
Andrew Kuchling [Tue, 12 Nov 2013 15:26:15 +0000 (10:26 -0500)]
Merge from 3.3
Andrew Kuchling [Tue, 12 Nov 2013 15:25:15 +0000 (10:25 -0500)]
Closes #12828: add docstring text noting this is an internal-only module
Andrew Kuchling [Tue, 12 Nov 2013 15:03:20 +0000 (10:03 -0500)]
Merge from 3.3
Andrew Kuchling [Tue, 12 Nov 2013 15:02:35 +0000 (10:02 -0500)]
Update e-mail address
Tim Golden [Tue, 12 Nov 2013 13:33:17 +0000 (13:33 +0000)]
Issue #13674 Null merge with 3.3
Tim Golden [Tue, 12 Nov 2013 13:24:03 +0000 (13:24 +0000)]
Issue #13674 Updated NEWS
Tim Golden [Tue, 12 Nov 2013 13:22:39 +0000 (13:22 +0000)]
Issue #13674 Updated NEWS
Tim Golden [Tue, 12 Nov 2013 12:51:37 +0000 (12:51 +0000)]
Remove mis-merged artefact
Tim Golden [Tue, 12 Nov 2013 12:48:20 +0000 (12:48 +0000)]
Issue13674 Correct crash with strftime %y format under Windows
Tim Golden [Tue, 12 Nov 2013 12:36:54 +0000 (12:36 +0000)]
Issue13674 Correct crash with strftime %y format under Windows
Zachary Ware [Tue, 12 Nov 2013 04:59:23 +0000 (22:59 -0600)]
Issue #19440: Clean up test_capi
Zachary Ware [Tue, 12 Nov 2013 04:47:04 +0000 (22:47 -0600)]
Issue #19440: Clean up test_capi
Zachary Ware [Tue, 12 Nov 2013 04:44:03 +0000 (22:44 -0600)]
Null merge
Zachary Ware [Tue, 12 Nov 2013 04:30:47 +0000 (22:30 -0600)]
Correct a merge error in Misc/NEWS
Andrew Kuchling [Mon, 11 Nov 2013 19:50:13 +0000 (14:50 -0500)]
#15422: remove NEWS item for a change that was later reverted
Andrew Kuchling [Mon, 11 Nov 2013 19:03:23 +0000 (14:03 -0500)]
Closes #6683: add a test that exercises multiple authentication.
The SMTP server advertises four different authentication methods, and
the code will try CRAM-MD5 first, which will fail, but LOGIN succeeds.
Tim Golden [Mon, 11 Nov 2013 15:08:40 +0000 (15:08 +0000)]
Remove outdated comment
Tim Golden [Mon, 11 Nov 2013 15:08:04 +0000 (15:08 +0000)]
Remove outdated comment
Nick Coghlan [Mon, 11 Nov 2013 12:11:55 +0000 (22:11 +1000)]
Close #19406: Initial implementation of ensurepip
Patch by Donald Stufft and Nick Coghlan
Kristjan Valur Jonsson [Mon, 11 Nov 2013 11:29:04 +0000 (11:29 +0000)]
Issue #8799: Reduce timing sensitivity of condition test by explicitly
delaying the main thread so that it doesn't race ahead of the workers.
Serhiy Storchaka [Mon, 11 Nov 2013 05:47:35 +0000 (07:47 +0200)]
Fixed compile error on Windows caused by arithmetic with void * pointers
(issue #16685).
Andrew Kuchling [Mon, 11 Nov 2013 02:46:02 +0000 (21:46 -0500)]
#
1097797 : add the original mapping file
Andrew Kuchling [Mon, 11 Nov 2013 02:45:24 +0000 (21:45 -0500)]
Fix some PEP8-formatting problems in the generated code
Jason R. Coombs [Mon, 11 Nov 2013 01:28:18 +0000 (20:28 -0500)]
Fix failing test incorrectly merged in
b1244046f37a
Jason R. Coombs [Sun, 10 Nov 2013 23:59:44 +0000 (18:59 -0500)]
Merge with 3.3 for Issue #19544 and Issue #6286. Merge is untested. I was unable to test due to
bab0cbf86835 .
Jason R. Coombs [Sun, 10 Nov 2013 23:50:10 +0000 (18:50 -0500)]
Issue #19544 and Issue #6286: Restore use of urllib over http allowing use of http_proxy for Distutils upload command, a feature accidentally lost in the rollback of distutils2.
Jason R. Coombs [Sun, 10 Nov 2013 23:21:49 +0000 (18:21 -0500)]
Merge with 3.3 for Issue #19544 and Issue #7457
Jason R. Coombs [Sun, 10 Nov 2013 23:15:03 +0000 (18:15 -0500)]
Issue 19544 and Issue #7457: Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2.
Serhiy Storchaka [Sun, 10 Nov 2013 19:44:36 +0000 (21:44 +0200)]
Issue #16685: Added support for any bytes-like objects in the audioop module.
Removed support for strings.
Jason R. Coombs [Sun, 10 Nov 2013 19:13:44 +0000 (14:13 -0500)]
Update Misc/NEWS for Issue #7171
Serhiy Storchaka [Sun, 10 Nov 2013 19:05:38 +0000 (21:05 +0200)]
Merge heads
Serhiy Storchaka [Sun, 10 Nov 2013 19:02:53 +0000 (21:02 +0200)]
Issue #19261: Added support for writing 24-bit samples in the sunau module.