Commit Graph

98449 Commits

Author SHA1 Message Date
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
Miss Islington (bot) f9a639b97c 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 b9052a0f91)
2017-10-31 14:46:15 +02:00
Miss Islington (bot) 5db32085e7 bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)
(cherry picked from commit baac01e629)
2017-10-31 14:33:09 +02:00
Victor Stinner 41efc402f1
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 19f68301a1)
2017-10-31 03:45:01 -07:00
Pablo Galindo 690c36f2f1 [3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122) 2017-10-30 17:46:34 -07:00
Miss Islington (bot) 2702380870 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 11225753a8)
2017-10-30 11:47:39 -07:00
Serhiy Storchaka 9ea5a3a45b
[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 a2314283ff)
2017-10-29 12:24:45 +02:00
Berker Peksag 0f1973d06e
bpo-31065: Add doc about Popen.poll returning None. (GH-3169)
(cherry picked from commit 006617ff7d)
2017-10-29 07:06:48 +03:00
Miss Islington (bot) 8ed5644f78 bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)
(cherry picked from commit 5a4bbcd479)
2017-10-28 07:43:16 -04:00
Miss Islington (bot) eb5aa3624e 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 e86172d63a)
2017-10-27 21:39:37 -04:00
Miss Islington (bot) 6a2957de08 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 ed6554c487)
2017-10-27 20:59:38 -04:00
Miss Islington (bot) bb78898224 bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)
(cherry picked from commit 7351f9e5a9)
2017-10-27 16:17:36 +03:00
Miss Islington (bot) 37d1d967ee bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)
(cherry picked from commit d609b0c24e)
2017-10-27 07:47:00 +03:00
xdegaye 4b27d51222 [3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). (#4135)
(cherry picked from commit 56d1f5ca32)
2017-10-26 17:48:48 +02:00
Serhiy Storchaka d94ef8fe94 Fix trailing whitespaces in C and Python files. (#4131) 2017-10-26 17:00:13 +03:00
Serhiy Storchaka 2b5cbbb13c [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 41c56940c6)
2017-10-26 12:02:54 +03:00
Miss Islington (bot) 614ea48986 bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)
(cherry picked from commit 275d2d9c46)
2017-10-26 11:38:14 +03:00
Serhiy Storchaka f52dff611c bpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111) 2017-10-24 23:11:42 +03:00
xdegaye d5d79545b7 [3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)
(cherry picked from commit 66caacf2f0)
2017-10-24 16:42:33 +02:00
Miss Islington (bot) d8f78a1fbc 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 8e482bea21)
2017-10-24 04:18:00 -07:00
Miss Islington (bot) d7604f5d06 bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)
SyntaxError now is raised instead of SyntaxWarning.
(cherry picked from commit 3b66ebe772)
2017-10-24 01:08:03 +03:00
Miss Islington (bot) a5f9d24c17 bpo-30722: Make redemo work with Python 3.6+ (GH-2311)
(cherry picked from commit 62adc55aff)
2017-10-23 20:40:36 +03:00
Miss Islington (bot) 6e45d7b90a 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 4ffd4653a7)
2017-10-23 18:20:13 +03:00