Commit Graph

98671 Commits

Author SHA1 Message Date
Miss Islington (bot) 58cbae2293 bpo-16055: Fixes incorrect error text for int('1', base=1000) (GH-4376) (#4389)
(cherry picked from commit 28b624825e)
2017-11-14 01:35:13 -08:00
Miss Islington (bot) 18056fb11e bpo-32020: arraymodule: Correct missing Py_DECREF in failure case of make_array() (GH-4391) (#4392)
(cherry picked from commit 56935a53b1)
2017-11-14 09:01:29 +02:00
Miss Islington (bot) 6ed9d4ecde bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH-4384) (#4385)
(cherry picked from commit f76231f89a)
2017-11-13 10:19:52 +02:00
xdegaye ad004f9b5a
[3.6] bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350) (#4380)
(cherry picked from commit 92c2ca7633)
2017-11-12 18:18:36 +01:00
xdegaye ea5b545e38
[3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). (#4379)
(cherry picked from commit e0582a37c8)
2017-11-12 17:33:16 +01:00
Miss Islington (bot) 4e09deb127 The termios man page is in section 3 (GH-2450)
(cherry picked from commit e197a8538b)
2017-11-11 19:57:17 +03:00
Miss Islington (bot) 98ad985afe Remove redundant 'exc = True' line (GH-4357)
It can be removed after c28890fb42
(cherry picked from commit 7c9da3e5ba)
2017-11-11 18:11:34 +03:00
Miss Islington (bot) 7abbddd88d bpo-31824: Document default value of 'errors' parameters (GH-4328)
(cherry picked from commit e184cfd7bf)
2017-11-11 02:14:00 +03:00
Miss Islington (bot) 7997fa2e21 bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)
(cherry picked from commit 5e0df74b3b)
2017-11-10 12:56:59 +02:00
Miss Islington (bot) b9a40aca29 bpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python (GH-4176) (#4356)
(cherry picked from commit 191e993365)
2017-11-09 16:52:05 -08:00
Serhiy Storchaka 596286f8f3
[3.6] bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. (GH-4235) (#4352)
* Fix compilation of the socket module on NetBSD 8.
* Fix the assertion failure or reading arbitrary data when parse
  a AF_BLUETOOTH address on NetBSD and DragonFly BSD.
* Fix other potential errors and make the code more reliable.
(cherry picked from commit d3187158c0)
2017-11-09 21:40:29 +02:00
Miss Islington (bot) 726467616f Correct the location of a function mentioned in a comment (GH-4327)
(cherry picked from commit 01ae58d446)
2017-11-09 20:14:38 +03:00
xdegaye 0c4785bf39
[3.6] bpo-31934: Abort when building out of a not clean source tree (GH-4255). (#4340)
(cherry picked from commit 0de92859ca)
2017-11-08 16:54:07 +01:00
Miss Islington (bot) ac4f6d4448 bpo-31620: have asyncio/queues not leak memory when you've exceptions during waiting (GH-3813) (#4326)
(cherry picked from commit c62f0cb3b1)
2017-11-07 22:08:15 +03:00
Miss Islington (bot) 64f10492dc bpo-31793: Doc: Specialize smart-quotes for Japanese (GH-4006)
(cherry picked from commit 5a66c8a64d)
2017-11-08 01:55:08 +09:00
Antoine Pitrou d8d218ffda
[3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. (GH-4314) (#4322)
* bpo-31970: Reduce performance overhead of asyncio debug mode..
(cherry picked from commit 921e9432a1)
2017-11-07 17:50:48 +01:00
Miss Islington (bot) 518c6b9786 bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (GH-4319) (#4320)
(cherry picked from commit 22b1128559)
2017-11-07 17:22:18 +01:00
Miss Islington (bot) d9c61c2a26 bpo-31965: fix doc for multiprocessing.connection.Client and Listener (GH-4304) (#4321)
* fix doc for multiprocessing.connection.Client

The authenticate argument does not exist on either Client or Listener:
- https://github.com/python/cpython/blob/master/Lib/multiprocessing/connection.pyGH-L483 (master)
- https://github.com/python/cpython/blob/3.6/Lib/multiprocessing/connection.pyGH-L478 (3.6)
- https://github.com/python/cpython/blob/3.5/Lib/multiprocessing/connection.pyGH-L478 (3.5)
- https://github.com/python/cpython/blob/3.4/Lib/multiprocessing/connection.pyGH-L487 (3.4)
The documentation also claimed that these functions will call `current_process().auth_key`, for which I could find no evidence in the code. I rewrote the documentation to reflect the actual behavior.

Also made some small changes to vary sentence structure.
(cherry picked from commit 1e5d54cfa0)
2017-11-07 17:20:24 +01:00
Miss Islington (bot) a5dca7d173 Fix the sizeof test for dicts with shared keys. (GH-4311) (#4312)
By accident the size of the empty dict keys object matched the
size of values array.
(cherry picked from commit 39a156c505)
2017-11-07 15:59:33 +02:00
Miss Islington (bot) ef6f224ae6 Fix a memory leak in _msi.c (GH-4127) (#4309)
(cherry picked from commit cb04f75182)
2017-11-07 02:50:41 -08:00
Miss Islington (bot) e65617f65e bpo-31950: Improve event loop policy doc (GH-4306) (#4307)
(cherry picked from commit 4135c89395)
2017-11-07 10:34:47 +01:00
Miss Islington (bot) b0331c94c2 bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-3958) (#4303)
(cherry picked from commit edb13ae48c)
2017-11-06 16:45:19 -08:00
Miss Islington (bot) 9684cf69e3 bpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more than once (GH-3968) (#4301)
(cherry picked from commit e56ab746a9)
2017-11-06 16:44:23 -08:00
Miss Islington (bot) a6ffec2e88 [3.6] bpo-31957: Fixes version detection. (GH-4298) (#4300) 2017-11-06 15:04:58 -08:00
Terry Jan Reedy 646e4c8fcc
[3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)
Manual partial backport of patch that fixed nearly 50 other files.
2017-11-05 20:30:06 -05:00
Miss Islington (bot) f444356234 bpo-31609: Fixes quotes in PCbuild/clean.bat (GH-4280) (#4285)
(cherry picked from commit aed0856222)
2017-11-04 17:25:09 -07:00
Miss Islington (bot) 40708cc7d2 bpo-31944: Fixes build and Modify button (GH-4278) (#4284)
(cherry picked from commit 0d2a9088d1)
2017-11-04 17:07:31 -07:00
Miss Islington (bot) 5c0100aec0 bpo-31923: Fix spelling in sqlite3 docs (GH-4227)
(cherry picked from commit aafece7a9e)
2017-11-05 02:11:01 +03:00
Miss Islington (bot) f9387469e8 bpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869)
(cherry picked from commit 82cd3cede8)
2017-11-04 13:45:51 +03:00
Miss Islington (bot) 6dbecd2cd9 bpo-18699: Corrected documentation for window.chgat in curses module (GH-1430) (#4271)
(cherry picked from commit b838cc3ff4)
2017-11-04 10:26:44 +02:00
Miss Islington (bot) ec2b2dcdd6 bpo-9678: Fix determining the MAC address in the uuid module. (GH-4264) (#4269)
* Using ifconfig on NetBSD and OpenBSD.
* Using arp on Linux, FreeBSD, NetBSD and OpenBSD.

Based on patch by Takayuki Shimizukawa.
(cherry picked from commit ee1a9a2b78)
2017-11-04 10:11:20 +02:00
Miss Islington (bot) 8ce98543ef bpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4259)
(cherry picked from commit a7723d8b09)
2017-11-03 22:11:09 +02:00
Miss Islington (bot) a512493371 bpo-31933: fix blake2 multi-byte params on big endian platforms (GH-4250) (#4262)
All Blake2 params have to be encoded in little-endian byte order. For
the two multi-byte integer params, leaf_length and node_offset, that
means that assigning a native-endian integer to them appears to work on
little-endian platforms, but gives the wrong result on big-endian. The
current libb2 API doesn't make that very clear, and @sneves is working
on new API functions in the GH issue above. In the meantime, we can work
around the problem by explicitly assigning little-endian values to the
parameter block.

See https://github.com/BLAKE2/libb2/issues/12.
(cherry picked from commit dcfb0e3c04)
2017-11-03 20:55:54 +01:00
Miss Islington (bot) ea80ae04e2 bpo-30057: Fix potential missed signal in signal.signal(). (GH-4258) (#4261)
Bug report and patch by Jeroen Demeyer.
(cherry picked from commit f6f90ff079)
2017-11-03 20:23:12 +01:00
Antoine Pitrou b5f09acf0a
[3.6] bpo-31310: multiprocessing's semaphore tracker should be launched again if crashed (GH-3247) (#4254)
* bpo-31310: multiprocessing's semaphore tracker should be launched again if crashed

* Avoid mucking with process state in test.
Add a warning if the semaphore process died, as semaphores may then be leaked.

* Add NEWS entry
(cherry picked from commit cbe1756)
2017-11-03 14:58:37 +01:00
Tal Einat f8b3f6b178 [3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic (GH-4230) (#4253)
When a single .c file contains several functions and/or methods with
the same name, a safety _METHODDEF GH-define statement is generated
only for one of them.

This fixes the bug by using the full name of the function to avoid
duplicates rather than just the name..
(cherry picked from commit 4f57409a2f)
2017-11-03 06:43:13 -07:00
Antoine Pitrou 019c99f325
[3.6] bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary (GH-3246) (#4252)
* bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary.

* Fix test on Windows

* Add NEWS entry

* Adopt a different approach: ignore SIGINT and SIGTERM, as in semaphore tracker.

* Fix comment

* Make sure the test doesn't muck with process state

* Also test previously-started processes

* Update 2017-08-30-17-59-36.bpo-31308.KbexyC.rst

* Avoid masking SIGTERM in forkserver.  It's not necessary and causes a race condition in test_many_processes..
(cherry picked from commit fc6b348b12)
2017-11-03 13:59:43 +01:00
Miss Islington (bot) 5fbe5e161c bpo-30806: Fix netrc.__repr__() format (GH-2491)
netrc file format doesn't support quotes and escapes.

See https://linux.die.net/man/5/netrc
(cherry picked from commit b24cd055ec)
2017-11-03 14:36:45 +09:00
Berker Peksag 7891556b5c
Returning 1 from the set_progress_handler handler cancels query (GH-4120)
(cherry picked from commit ac03c03b30)
2017-11-02 21:08:04 +03:00
Miss Islington (bot) b3af7fa453 Update multissltests: 1.0.2m, 1.1.0g (GH-4232) (#4236)
(cherry picked from commit 0d2c645d41)
2017-11-02 18:22:31 +01:00
Miss Islington (bot) aad7ac10af bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). (GH-4220) (#4221)
(cherry picked from commit 4f469c0966)
2017-11-01 21:23:46 +02:00
Miss Islington (bot) 1f81ea85e8 bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. (GH-3826) (#4218)
Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken
in ncurses 5.7.
(cherry picked from commit 7e68790f3d)
2017-11-01 16:38:35 +02:00
Miss Islington (bot) 2be9a31213 bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)
(cherry picked from commit 894ebd065e)
2017-11-01 15:11:12 +02:00
Miss Islington (bot) 89b84b026b Fix test_socket.test_create_connection() (GH-4206) (#4208)
bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to
fix the test on Travis CI.
(cherry picked from commit 280c22a82a)
2017-11-01 06:07:25 -07:00
Miss Islington (bot) f44a6299e2 Remove nested comments in blake2 (GH-4173) (#4214)
Replace occurence of nested comments in blake2 reference implementation
with preprocessor directive for disabling unused code.

`blake2s-load-xop.h` is conditionally pulled in only on chips with XOP
support, among others the AMD Bulldozer. The malformed comments in the
source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0.

Official reference code on github uses `GH-if` so this change should be
uncontroversial.
(cherry picked from commit 388cd85e51)
2017-11-01 12:58:40 +00:00
Miss Islington (bot) ff6ae4de38 bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4212)
Modify the code to use ncurses is_pad() instead of checking WINDOW
_flags field.  If your platform does not provide the is_pad(), the
existing way that checks the field will be enabled.

Note: This change does not drop support for platforms where do not
have both WINDOW _flags field and is_pad().
(cherry picked from commit 8bc7d63560)
2017-11-01 14:35:41 +02:00
Miss Islington (bot) 84e252b79e bpo-31893: Fix errors in b9052a0f91. (GH-4196) (#4201)
* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
(cherry picked from commit 2298fad5ff)
2017-10-31 20:16:07 +02:00
Miss Islington (bot) 8543ce8ffd bpo-20064: Document PyObject_Malloc() (GH-4199) (#4203)
Document the following functions:

* PyObject_Malloc()
* PyObject_Calloc()
* PyObject_Realloc()
* PyObject_Free()

Fix also PyMem_RawFree() documentation.
(cherry picked from commit ec2cbdd1df)
2017-10-31 09:56:11 -07:00
Miss Islington (bot) 6969d368c4 bpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileException. (GH-4171) (#4192)
(cherry picked from commit db91e0fe24)
2017-10-31 15:58:55 +02:00
Miss Islington (bot) ece5659565 bpo-31626: Fixed a bug in debug memory allocator. (GH-3844) (#4191)
Removed a code that incorrectly detected in-place resizing in realloc()
 and wrote to freed memory.
(cherry picked from commit b484d5606c)
2017-10-31 15:58:33 +02:00