]> granicus.if.org Git - python/log
python
7 years agobpo-30904: Removed duplicated Host: header. (GH-4465) (#4468)
Miss Islington (bot) [Sun, 19 Nov 2017 19:16:17 +0000 (11:16 -0800)]
bpo-30904: Removed duplicated Host: header. (GH-4465) (#4468)

(cherry picked from commit e96ba183c43ad6633b5d014b3dc57433e2802faf)

7 years agobpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) (GH-4466)
Miss Islington (bot) [Sun, 19 Nov 2017 18:43:49 +0000 (10:43 -0800)]
bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) (GH-4466)

TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
(cherry picked from commit afad147b59fe84b12317f7340ddd2deeecb22321)

7 years agoRemove outdated .pyo reference from msilib docs (GH-4461)
Miss Islington (bot) [Sun, 19 Nov 2017 10:11:48 +0000 (02:11 -0800)]
Remove outdated .pyo reference from msilib docs (GH-4461)

Since f299abdafa0f2b6eb7abae274861b19b361c96bc
the remove_pyc() method no longer tries to
remove .pyo files.
(cherry picked from commit b56becb373f01c7e285f028bde640f0864d0240e)

7 years agoDocument parameters of BaseServer.finish_request() (GH-4445)
Miss Islington (bot) [Sun, 19 Nov 2017 07:41:19 +0000 (23:41 -0800)]
Document parameters of BaseServer.finish_request() (GH-4445)

(cherry picked from commit 7750bded92d908cbc422c57b97214f8eec615b0d)

7 years agobpo-31691: Specify where to find installer build instructions for Windows (#4427)
native-api [Fri, 17 Nov 2017 00:50:48 +0000 (03:50 +0300)]
bpo-31691: Specify where to find installer build instructions for Windows (#4427)

7 years agobpo-31691: Specify where to find build instructions for the Windows installer (GH...
Miss Islington (bot) [Fri, 17 Nov 2017 00:49:36 +0000 (16:49 -0800)]
bpo-31691: Specify where to find build instructions for the Windows installer (GH-4426) (#4431)

(cherry picked from commit fd0fa67464f75cebca67cd14d050476a0c73bd53)

7 years agoFix typo in atexit documentation. (GH-4419) (GH-4425)
Miss Islington (bot) [Thu, 16 Nov 2017 17:11:41 +0000 (09:11 -0800)]
Fix typo in atexit documentation. (GH-4419) (GH-4425)

`kargs` -> `kwargs`
(cherry picked from commit d505a29a15a6f9315d8c46445b8a0cccfc2048b8)

7 years agobpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416)
Victor Stinner [Thu, 16 Nov 2017 11:53:45 +0000 (03:53 -0800)]
bpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416)

(cherry picked from commit 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16)

7 years agobpo-32034: Make IncompleteReadError & LimitOverrunError pickleable GH-4409 (#4411)
Miss Islington (bot) [Thu, 16 Nov 2017 00:28:25 +0000 (16:28 -0800)]
bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable GH-4409 (#4411)

(cherry picked from commit 43605e6bfa8d49612df4a38460d063d6ba781906)

7 years agobpo-32011: Revert "Issue GH-15480: Remove the deprecated and unused TYPE_INT64 code...
Miss Islington (bot) [Wed, 15 Nov 2017 16:05:58 +0000 (08:05 -0800)]
bpo-32011: Revert "Issue GH-15480: Remove the deprecated and unused TYPE_INT64 code from marshal." (GH-4381) (#4405)

Simplify the reverted code.

This reverts commit e9bbe8b87ba2874efba0474af5cc7d5941dbf742.
(cherry picked from commit 00987f6230fcdbecc8d9ab4b2b9fae8f99a1a4a9)

7 years ago[3.6] bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print(...
Serhiy Storchaka [Wed, 15 Nov 2017 16:04:46 +0000 (18:04 +0200)]
[3.6] bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (GH-4289) (#4406)

* Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
* Setting sys.tracebacklimit to None now causes using the default limit.
* Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
  the limit LONG_MAX rather than the default limit.
* Fixed integer overflows in the case of more than 2**31 traceback items on
  Windows.
* Fixed output errors handling..
(cherry picked from commit edad8eebeee3c99e324a7f1ac5073167c2b0b54d)

7 years agobpo-32032: Test both implementations of module-level pickle API. (GH-4401) (#4403)
Miss Islington (bot) [Wed, 15 Nov 2017 12:32:04 +0000 (04:32 -0800)]
bpo-32032: Test both implementations of module-level pickle API. (GH-4401) (#4403)

(cherry picked from commit 6545256df93ba54f811206107274cfa5a6d76b86)

7 years agobpo-31948: Fix broken links in msilib docs (GH-4397). (GH-4398)
Jesse-Bakker [Wed, 15 Nov 2017 00:23:35 +0000 (01:23 +0100)]
bpo-31948: Fix broken links in msilib docs (GH-4397). (GH-4398)

(cherry picked from commit 3bda02222aa3783bf85fc3ff8bc042aefd9c4fd3)

7 years agobpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4394)
Miss Islington (bot) [Tue, 14 Nov 2017 15:38:50 +0000 (07:38 -0800)]
bpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4394)

(cherry picked from commit b0b44b4b3337297007f5ef87220a75df204399f8)

7 years ago[3.6] bpo-32015: Asyncio looping during simultaneously socket read/write an… (GH...
Andrew Svetlov [Tue, 14 Nov 2017 10:14:51 +0000 (12:14 +0200)]
[3.6] bpo-32015: Asyncio looping during simultaneously socket read/write an… (GH-4386) (#4393)

* bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection

* Tests fix

* Tests fix

* News add

* Add new unit tests.
(cherry picked from commit e1d62e0b7cc842d6b75b4d480391f4a94e503255)

7 years agobpo-16055: Fixes incorrect error text for int('1', base=1000) (GH-4376) (#4389)
Miss Islington (bot) [Tue, 14 Nov 2017 09:35:13 +0000 (01:35 -0800)]
bpo-16055: Fixes incorrect error text for int('1', base=1000) (GH-4376) (#4389)

(cherry picked from commit 28b624825eb92cb8c96fbf8da267d8d14a61a841)

7 years agobpo-32020: arraymodule: Correct missing Py_DECREF in failure case of make_array(...
Miss Islington (bot) [Tue, 14 Nov 2017 07:01:29 +0000 (23:01 -0800)]
bpo-32020: arraymodule: Correct missing Py_DECREF in failure case of make_array() (GH-4391) (#4392)

(cherry picked from commit 56935a53b11b9a70f3e13e460777ec81a5b9195e)

7 years agobpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH...
Miss Islington (bot) [Mon, 13 Nov 2017 08:19:52 +0000 (00:19 -0800)]
bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH-4384) (#4385)

(cherry picked from commit f76231f89a7231fd486b37f728fbb4aab389e4d7)

7 years ago[3.6] bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350) ...
xdegaye [Sun, 12 Nov 2017 17:18:36 +0000 (18:18 +0100)]
[3.6] bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350) (#4380)

(cherry picked from commit 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb)

7 years ago[3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). (#4379)
xdegaye [Sun, 12 Nov 2017 16:33:16 +0000 (17:33 +0100)]
[3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). (#4379)

(cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)

7 years agoThe termios man page is in section 3 (GH-2450)
Miss Islington (bot) [Sat, 11 Nov 2017 16:57:17 +0000 (08:57 -0800)]
The termios man page is in section 3 (GH-2450)

(cherry picked from commit e197a8538bae3c5f2727dfdc8672aa15d9429e51)

7 years agoRemove redundant 'exc = True' line (GH-4357)
Miss Islington (bot) [Sat, 11 Nov 2017 15:11:34 +0000 (07:11 -0800)]
Remove redundant 'exc = True' line (GH-4357)

It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee
(cherry picked from commit 7c9da3e5ba060463b661da58ec3fe6beedce5566)

7 years agobpo-31824: Document default value of 'errors' parameters (GH-4328)
Miss Islington (bot) [Fri, 10 Nov 2017 23:14:00 +0000 (15:14 -0800)]
bpo-31824: Document default value of 'errors' parameters (GH-4328)

(cherry picked from commit e184cfd7bf8bcfd160e3b611d4351ca3ce52d9e2)

7 years agobpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)
Miss Islington (bot) [Fri, 10 Nov 2017 10:56:59 +0000 (02:56 -0800)]
bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)

(cherry picked from commit 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9)

7 years agobpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python...
Miss Islington (bot) [Fri, 10 Nov 2017 00:52:05 +0000 (16:52 -0800)]
bpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python (GH-4176) (#4356)

(cherry picked from commit 191e993365ac3206f46132dcf46236471ec54bfa)

7 years ago[3.6] bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. (GH-4235...
Serhiy Storchaka [Thu, 9 Nov 2017 19:40:29 +0000 (21:40 +0200)]
[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 d3187158c09cf899e9849f335bdff10594209167)

7 years agoCorrect the location of a function mentioned in a comment (GH-4327)
Miss Islington (bot) [Thu, 9 Nov 2017 17:14:38 +0000 (09:14 -0800)]
Correct the location of a function mentioned in a comment (GH-4327)

(cherry picked from commit 01ae58d44622a37304c74b2d8ed32e97a7fe1969)

7 years ago[3.6] bpo-31934: Abort when building out of a not clean source tree (GH-4255). (...
xdegaye [Wed, 8 Nov 2017 15:54:07 +0000 (16:54 +0100)]
[3.6] bpo-31934: Abort when building out of a not clean source tree (GH-4255). (#4340)

(cherry picked from commit 0de92859caf25e65fc968d4bb68626e9ba21b851)

7 years agobpo-31620: have asyncio/queues not leak memory when you've exceptions during waiting...
Miss Islington (bot) [Tue, 7 Nov 2017 19:08:15 +0000 (11:08 -0800)]
bpo-31620: have asyncio/queues not leak memory when you've exceptions during waiting (GH-3813) (#4326)

(cherry picked from commit c62f0cb3b1f6f9ca4ce463b1c99b0543bdfa38d6)

7 years agobpo-31793: Doc: Specialize smart-quotes for Japanese (GH-4006)
Miss Islington (bot) [Tue, 7 Nov 2017 16:55:08 +0000 (08:55 -0800)]
bpo-31793: Doc: Specialize smart-quotes for Japanese (GH-4006)

(cherry picked from commit 5a66c8a64d180b5f3c80307924adaec53cc8faa3)

7 years ago[3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. (GH-4314) (#4322)
Antoine Pitrou [Tue, 7 Nov 2017 16:50:48 +0000 (17:50 +0100)]
[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 921e9432a1461bbf312c9c6dcc2b916be6c05fa0)

7 years agobpo-31960: Fix asyncio.Future documentation for thread (un)safety. (GH-4319) (#4320)
Miss Islington (bot) [Tue, 7 Nov 2017 16:22:18 +0000 (08:22 -0800)]
bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (GH-4319) (#4320)

(cherry picked from commit 22b1128559bdeb96907da5840960691bb050d11a)

7 years agobpo-31965: fix doc for multiprocessing.connection.Client and Listener (GH-4304) ...
Miss Islington (bot) [Tue, 7 Nov 2017 16:20:24 +0000 (08:20 -0800)]
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 1e5d54cfa031f1de9ee2d2e968e0551b6e2397b7)

7 years agoFix the sizeof test for dicts with shared keys. (GH-4311) (#4312)
Miss Islington (bot) [Tue, 7 Nov 2017 13:59:33 +0000 (05:59 -0800)]
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 39a156c505b7dc431a0a4cffcbefca577848db38)

7 years agoFix a memory leak in _msi.c (GH-4127) (#4309)
Miss Islington (bot) [Tue, 7 Nov 2017 10:50:41 +0000 (02:50 -0800)]
Fix a memory leak in _msi.c (GH-4127) (#4309)

(cherry picked from commit cb04f7518292108d68e5ba4c685ca2bf2da18eab)

7 years agobpo-31950: Improve event loop policy doc (GH-4306) (#4307)
Miss Islington (bot) [Tue, 7 Nov 2017 09:34:47 +0000 (01:34 -0800)]
bpo-31950: Improve event loop policy doc (GH-4306) (#4307)

(cherry picked from commit 4135c89395726024abddb7340a0c7a42c801f616)

7 years agobpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is...
Miss Islington (bot) [Tue, 7 Nov 2017 00:45:19 +0000 (16:45 -0800)]
bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-3958) (#4303)

(cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)

7 years agobpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more...
Miss Islington (bot) [Tue, 7 Nov 2017 00:44:23 +0000 (16:44 -0800)]
bpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more than once (GH-3968) (#4301)

(cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)

7 years ago[3.6] bpo-31957: Fixes version detection. (GH-4298) (#4300)
Miss Islington (bot) [Mon, 6 Nov 2017 23:04:58 +0000 (15:04 -0800)]
[3.6] bpo-31957: Fixes version detection. (GH-4298) (#4300)

7 years ago[3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)
Terry Jan Reedy [Mon, 6 Nov 2017 01:30:06 +0000 (20:30 -0500)]
[3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)

Manual partial backport of patch that fixed nearly 50 other files.

7 years agobpo-31609: Fixes quotes in PCbuild/clean.bat (GH-4280) (#4285)
Miss Islington (bot) [Sun, 5 Nov 2017 00:25:09 +0000 (17:25 -0700)]
bpo-31609: Fixes quotes in PCbuild/clean.bat (GH-4280) (#4285)

(cherry picked from commit aed08562220974b5c67371b908f23caa1be07e38)

7 years agobpo-31944: Fixes build and Modify button (GH-4278) (#4284)
Miss Islington (bot) [Sun, 5 Nov 2017 00:07:31 +0000 (17:07 -0700)]
bpo-31944: Fixes build and Modify button (GH-4278) (#4284)

(cherry picked from commit 0d2a9088d16826343344b04461c8be44b4008710)

7 years agobpo-31923: Fix spelling in sqlite3 docs (GH-4227)
Miss Islington (bot) [Sat, 4 Nov 2017 23:11:01 +0000 (16:11 -0700)]
bpo-31923: Fix spelling in sqlite3 docs (GH-4227)

(cherry picked from commit aafece7a9e010075fff4420cfbb16f1ec0342698)

7 years agobpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869)
Miss Islington (bot) [Sat, 4 Nov 2017 10:45:51 +0000 (03:45 -0700)]
bpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869)

(cherry picked from commit 82cd3cede804ca694fb0657fd985d5eff84a414f)

7 years agobpo-18699: Corrected documentation for window.chgat in curses module (GH-1430) (...
Miss Islington (bot) [Sat, 4 Nov 2017 08:26:44 +0000 (01:26 -0700)]
bpo-18699: Corrected documentation for window.chgat in curses module (GH-1430) (#4271)

(cherry picked from commit b838cc3ff4e039af949c6a19bd896e98e944dcbe)

7 years agobpo-9678: Fix determining the MAC address in the uuid module. (GH-4264) (#4269)
Miss Islington (bot) [Sat, 4 Nov 2017 08:11:20 +0000 (01:11 -0700)]
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 ee1a9a2b78d5b6bb1a8148fc5fcf365e6d4e9e67)

7 years agobpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4259)
Miss Islington (bot) [Fri, 3 Nov 2017 20:11:09 +0000 (13:11 -0700)]
bpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4259)

(cherry picked from commit a7723d8b09f516a2b75837a3527b8cc7bee89fad)

7 years agobpo-31933: fix blake2 multi-byte params on big endian platforms (GH-4250) (#4262)
Miss Islington (bot) [Fri, 3 Nov 2017 19:55:54 +0000 (12:55 -0700)]
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 dcfb0e3c04f1b29a0d09bb0a81dcd5ee5a5fef1a)

7 years agobpo-30057: Fix potential missed signal in signal.signal(). (GH-4258) (#4261)
Miss Islington (bot) [Fri, 3 Nov 2017 19:23:12 +0000 (12:23 -0700)]
bpo-30057: Fix potential missed signal in signal.signal(). (GH-4258) (#4261)

Bug report and patch by Jeroen Demeyer.
(cherry picked from commit f6f90ff079a22b79a58d47b6117cc8a8c7d366f3)

7 years ago[3.6] bpo-31310: multiprocessing's semaphore tracker should be launched again if...
Antoine Pitrou [Fri, 3 Nov 2017 13:58:37 +0000 (14:58 +0100)]
[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)

7 years ago[3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic (GH-4230)...
Tal Einat [Fri, 3 Nov 2017 13:43:13 +0000 (15:43 +0200)]
[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 4f57409a2f7bdf8fb559cddc7c6533ca2c471c67)

7 years ago[3.6] bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary...
Antoine Pitrou [Fri, 3 Nov 2017 12:59:43 +0000 (13:59 +0100)]
[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 fc6b348b12ad401cab0261b7b71a65c60a08c0a8)

7 years agobpo-30806: Fix netrc.__repr__() format (GH-2491)
Miss Islington (bot) [Fri, 3 Nov 2017 05:36:45 +0000 (22:36 -0700)]
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 b24cd055ecb3eea9a15405a6ca72dafc739e6531)

7 years agoReturning 1 from the set_progress_handler handler cancels query (GH-4120)
Berker Peksag [Thu, 2 Nov 2017 18:08:04 +0000 (21:08 +0300)]
Returning 1 from the set_progress_handler handler cancels query (GH-4120)

(cherry picked from commit ac03c03b305273f39d5374e2826526d4ab6bb415)

7 years agoUpdate multissltests: 1.0.2m, 1.1.0g (GH-4232) (#4236)
Miss Islington (bot) [Thu, 2 Nov 2017 17:22:31 +0000 (10:22 -0700)]
Update multissltests: 1.0.2m, 1.1.0g (GH-4232) (#4236)

(cherry picked from commit 0d2c645d41eee4ec7549c86ccc23970b692a48b0)

7 years agobpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). (GH-4220...
Miss Islington (bot) [Wed, 1 Nov 2017 19:23:46 +0000 (12:23 -0700)]
bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). (GH-4220) (#4221)

(cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)

7 years agobpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. ...
Miss Islington (bot) [Wed, 1 Nov 2017 14:38:35 +0000 (07:38 -0700)]
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 7e68790f3db75a893d5dd336e6201a63bc70212b)

7 years agobpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)
Miss Islington (bot) [Wed, 1 Nov 2017 13:11:12 +0000 (06:11 -0700)]
bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)

(cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)

7 years agoFix test_socket.test_create_connection() (GH-4206) (#4208)
Miss Islington (bot) [Wed, 1 Nov 2017 13:07:25 +0000 (06:07 -0700)]
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 280c22a82a6756e9caffef031c564fd98f1b50e7)

7 years agoRemove nested comments in blake2 (GH-4173) (#4214)
Miss Islington (bot) [Wed, 1 Nov 2017 12:58:40 +0000 (05:58 -0700)]
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 388cd85e51aa9c73f8e7f35f0d06c258be7b579c)

7 years agobpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4212)
Miss Islington (bot) [Wed, 1 Nov 2017 12:35:41 +0000 (05:35 -0700)]
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 8bc7d63560024681dce9f40445f2877b2987e92c)

7 years agobpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) (#4201)
Miss Islington (bot) [Tue, 31 Oct 2017 18:16:07 +0000 (11:16 -0700)]
bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) (#4201)

* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
(cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)

7 years agobpo-20064: Document PyObject_Malloc() (GH-4199) (#4203)
Miss Islington (bot) [Tue, 31 Oct 2017 16:56:11 +0000 (09:56 -0700)]
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 ec2cbdd1dff2c51788136480b2085e77506ebf34)

7 years agobpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileEx...
Miss Islington (bot) [Tue, 31 Oct 2017 13:58:55 +0000 (06:58 -0700)]
bpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileException. (GH-4171) (#4192)

(cherry picked from commit db91e0fe2417f075693a194a492b1699829871e7)

7 years agobpo-31626: Fixed a bug in debug memory allocator. (GH-3844) (#4191)
Miss Islington (bot) [Tue, 31 Oct 2017 13:58:33 +0000 (06:58 -0700)]
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 b484d5606ca76f9bbd0f5de7a6ef753400213e94)

7 years agobpo-31893: Fixed select.kqueue(). (GH-4166) (#4190)
Miss Islington (bot) [Tue, 31 Oct 2017 12:46:15 +0000 (05:46 -0700)]
bpo-31893: Fixed select.kqueue(). (GH-4166) (#4190)

* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD.
* Fixed the comparison of the kqueue_event objects.
(cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)

7 years agobpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)
Miss Islington (bot) [Tue, 31 Oct 2017 12:33:09 +0000 (05:33 -0700)]
bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)

(cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)

7 years agobpo-31629: Add support.SaveSignals (#4183) (#4187)
Victor Stinner [Tue, 31 Oct 2017 10:45:01 +0000 (03:45 -0700)]
bpo-31629: Add support.SaveSignals (#4183) (#4187)

test_curses now saves/restores signals. On FreeBSD, the curses module
sets handlers of some signals, but don't restore old handlers when
the module is deinitialized.

(cherry picked from commit 19f68301a1295a9c30d9f28b8f1479cdcccd75aa)

7 years ago[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)
Pablo Galindo [Tue, 31 Oct 2017 00:46:34 +0000 (00:46 +0000)]
[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)

7 years agobpo-31304: Update starmap_async documentation. (GH-4168) (GH-4177)
Miss Islington (bot) [Mon, 30 Oct 2017 18:47:39 +0000 (11:47 -0700)]
bpo-31304: Update starmap_async documentation. (GH-4168) (GH-4177)

Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code.
(cherry picked from commit 11225753a89c2907bb717e6c050fe907e5e11829)

7 years ago[3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH...
Serhiy Storchaka [Sun, 29 Oct 2017 10:24:45 +0000 (12:24 +0200)]
[3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH-4158) (#4162)

separators that are not bytes-like objects..
(cherry picked from commit a2314283ff87c65e1745a42c2f2b716b1a209128)

7 years agobpo-31065: Add doc about Popen.poll returning None. (GH-3169)
Berker Peksag [Sun, 29 Oct 2017 04:06:48 +0000 (07:06 +0300)]
bpo-31065: Add doc about Popen.poll returning None. (GH-3169)

(cherry picked from commit 006617ff7d6df3fdedcfe53e94ee2c52cc796437)

7 years agobpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)
Miss Islington (bot) [Sat, 28 Oct 2017 11:43:16 +0000 (04:43 -0700)]
bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)

(cherry picked from commit 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a)

7 years agoIDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)
Miss Islington (bot) [Sat, 28 Oct 2017 01:39:37 +0000 (18:39 -0700)]
IDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)

Editor and output windows only see an empty last prompt line.
This simplifies the code and fixes a minor bug when newline is inserted.
Sys.ps1, if present, is read on Shell start-up, but is not set or changed.
(cherry picked from commit e86172d63af5827a3c2b55b80351cb38a26190eb)

7 years agobpo-31860: Make the font sample in the IDLE font configuration dialog editable. ...
Miss Islington (bot) [Sat, 28 Oct 2017 00:59:38 +0000 (17:59 -0700)]
bpo-31860: Make the font sample in the IDLE font configuration dialog editable. (GH-4106) (#4154)

Changes persist while IDLE remains open
(cherry picked from commit ed6554c487fb2403bc88be6deee611c7a4171d33)

7 years agobpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)
Miss Islington (bot) [Fri, 27 Oct 2017 13:17:36 +0000 (06:17 -0700)]
bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)

(cherry picked from commit 7351f9e5a91c403d15c6d556f9989b443f1296f9)

7 years agobpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)
Miss Islington (bot) [Fri, 27 Oct 2017 04:47:00 +0000 (21:47 -0700)]
bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)

(cherry picked from commit d609b0c24ebdb748cabcc6c062dfc86f9000e6c4)

7 years ago[3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). (#4135)
xdegaye [Thu, 26 Oct 2017 15:48:48 +0000 (17:48 +0200)]
[3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). (#4135)

(cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)

7 years agoFix trailing whitespaces in C and Python files. (#4131)
Serhiy Storchaka [Thu, 26 Oct 2017 14:00:13 +0000 (17:00 +0300)]
Fix trailing whitespaces in C and Python files. (#4131)

7 years ago[3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (GH-4118) ...
Serhiy Storchaka [Thu, 26 Oct 2017 09:02:54 +0000 (12:02 +0300)]
[3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (GH-4118) (#4128)

BytesWarning no longer emitted when the fromlist argument of
__import__() or the __all__ attribute of the module contain bytes
instances..
(cherry picked from commit 41c56940c6edf3ea169332a6b039b6c8796f0475)

7 years agobpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)
Miss Islington (bot) [Thu, 26 Oct 2017 08:38:14 +0000 (01:38 -0700)]
bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)

(cherry picked from commit 275d2d9c4663a1ea8d1f7c8778567a735b0372c1)

7 years agobpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111)
Serhiy Storchaka [Tue, 24 Oct 2017 20:11:42 +0000 (23:11 +0300)]
bpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111)

7 years ago[3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)
xdegaye [Tue, 24 Oct 2017 14:42:33 +0000 (16:42 +0200)]
[3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)

(cherry picked from commit 66caacf2f0d6213b049a3097556e28e30440b900)

7 years agobpo-31174: Fix test_tools.test_unparse (GH-4102) (#4104)
Miss Islington (bot) [Tue, 24 Oct 2017 11:18:00 +0000 (04:18 -0700)]
bpo-31174: Fix test_tools.test_unparse (GH-4102) (#4104)

test_unparse.DirectoryTestCase now stores the names sample to always
test the same files. It prevents false alarms when hunting reference
leaks.
(cherry picked from commit 8e482bea21cb942804234e36d3c6c896aabd32da)

7 years agobpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)
Miss Islington (bot) [Mon, 23 Oct 2017 22:08:03 +0000 (15:08 -0700)]
bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)

SyntaxError now is raised instead of SyntaxWarning.
(cherry picked from commit 3b66ebe7727dba68c2c6ccf0cd85a4c31255b9b4)

7 years agobpo-30722: Make redemo work with Python 3.6+ (GH-2311)
Miss Islington (bot) [Mon, 23 Oct 2017 17:40:36 +0000 (10:40 -0700)]
bpo-30722: Make redemo work with Python 3.6+ (GH-2311)

(cherry picked from commit 62adc55aff0b78447568f73bd1abc610d2784bf8)

7 years agobpo-31752: Fix possible crash in timedelta constructor called with custom integers...
Miss Islington (bot) [Mon, 23 Oct 2017 15:20:13 +0000 (08:20 -0700)]
bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4086)

Bad remainder in divmod() in intermediate calculations caused an assertion failure.
(cherry picked from commit 4ffd4653a7ec9c97775472276cf5e159e2366bb2)

7 years ago[3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)
Miss Islington (bot) [Mon, 23 Oct 2017 13:05:46 +0000 (06:05 -0700)]
[3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)

(cherry picked from commit 85f643023fed3d4e2fb8e399f9ad57f3a65ef237)

7 years ago[3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (GH-3729). (#4081)
Serhiy Storchaka [Mon, 23 Oct 2017 12:00:41 +0000 (15:00 +0300)]
[3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (GH-3729). (#4081)

(cherry picked from commit 04e36af9b88cd5e80fc818e51d46f07252a2ff3f)

7 years agobpo-28286: Add tests for the mode argument of GzipFile. (GH-4074) (#4076)
Miss Islington (bot) [Sun, 22 Oct 2017 11:53:43 +0000 (04:53 -0700)]
bpo-28286: Add tests for the mode argument of GzipFile. (GH-4074) (#4076)

(cherry picked from commit bcbdd2f8db396c3f0ec9186162b39b5a34effa0e)

7 years ago[3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed...
Antoine Pitrou [Sun, 22 Oct 2017 10:27:13 +0000 (12:27 +0200)]
[3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (GH-4073).  (#4075)

* bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (#4073)

(cherry picked from commit daeefd2e049b74340307481112a39f77de0f4769)

* [3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (GH-4073).
(cherry picked from commit daeefd2e049b74340307481112a39f77de0f4769)

7 years agobpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (#4059)
Miss Islington (bot) [Fri, 20 Oct 2017 14:41:29 +0000 (07:41 -0700)]
bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (#4059)

and in codecs.escape_decode() when decode an escaped non-ascii byte.
(cherry picked from commit 56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f)

7 years agobpo-31632: fix set_protocol() in _SSLProtocolTransport (GH-3817) (GH-3817) (#4052)
Miss Islington (bot) [Thu, 19 Oct 2017 18:12:44 +0000 (11:12 -0700)]
bpo-31632: fix set_protocol() in _SSLProtocolTransport (GH-3817) (GH-3817) (#4052)

(cherry picked from commit ea2ef5d0ca869d4550820ed53bdf56013dbb9546)

7 years agobpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044...
Miss Islington (bot) [Thu, 19 Oct 2017 18:11:49 +0000 (11:11 -0700)]
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044) (GH-4050)

This used to be the case on Python 2.  Commit
212b590e118e3650b596917021ed9612a918180b changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly.  This
makes nested log adapters not execute their ``process()`` method.  This patch
fixes the issue.

Also, now proxying `name`, too, to make `repr()` work with nested log adapters.

New tests added.
(cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)

7 years ago[3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable (GH-4042) (#4043)
Miss Islington (bot) [Thu, 19 Oct 2017 01:02:59 +0000 (18:02 -0700)]
[3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable (GH-4042) (#4043)

Due to a bug in the initial fix, the setter was in fact creating a different
property.  This is now fixed.
(cherry picked from commit 0b6a118a45ac2eded1348fea6ed300d5651f7471)

7 years agoUpdate TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998)...
Miss Islington (bot) [Wed, 18 Oct 2017 17:34:27 +0000 (10:34 -0700)]
Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998) (GH-4039)

The word "difference" from missing the sentence.
This clarifies that it compares the difference between the two objects.
(cherry picked from commit 032a6480e360427d4f964e31643604fad804ea14)

7 years ago[3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)
Miss Islington (bot) [Wed, 18 Oct 2017 12:05:16 +0000 (05:05 -0700)]
[3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)

Always pass -1, or INFTIM where defined, to the poll() system call when
a negative timeout is passed to the poll.poll([timeout]) method in the
select module. Various OSes throw an error with arbitrary negative
values.
(cherry picked from commit 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604)

7 years ago[3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more...
Miss Islington (bot) [Wed, 18 Oct 2017 09:09:57 +0000 (02:09 -0700)]
[3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more functions (GH-4026) (#4032)

Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
(cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)

7 years ago[3.6] bpo-31786: Make functions in the select module blocking when timeout is a small...
Pablo Galindo [Wed, 18 Oct 2017 08:12:47 +0000 (09:12 +0100)]
[3.6] bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (GH-4003). (#4022)

(cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)

7 years agobpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)
Miss Islington (bot) [Wed, 18 Oct 2017 01:47:10 +0000 (18:47 -0700)]
bpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)

test_load_source() now replaces the current __name__ module with a
temporary module to prevent side effects.
(cherry picked from commit a505ecdc5013cd8f930aacc1ec4fb2afa62d3853)