summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) ↵Miss Islington (bot)2017-11-191-1/+1
| | | | | | (GH-4466) TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed. (cherry picked from commit afad147b59fe84b12317f7340ddd2deeecb22321)
* bpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416)Victor Stinner2017-11-161-0/+16
| | | (cherry picked from commit 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16)
* bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable GH-4409 ↵Miss Islington (bot)2017-11-162-0/+24
| | | | | (#4411) (cherry picked from commit 43605e6bfa8d49612df4a38460d063d6ba781906)
* bpo-32011: Revert "Issue GH-15480: Remove the deprecated and unused ↵Miss Islington (bot)2017-11-151-0/+23
| | | | | | | | TYPE_INT64 code from marshal." (GH-4381) (#4405) Simplify the reverted code. This reverts commit e9bbe8b87ba2874efba0474af5cc7d5941dbf742. (cherry picked from commit 00987f6230fcdbecc8d9ab4b2b9fae8f99a1a4a9)
* [3.6] bpo-31949: Fixed several issues in printing tracebacks ↵Serhiy Storchaka2017-11-151-0/+33
| | | | | | | | | | | | (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)
* bpo-32032: Test both implementations of module-level pickle API. (GH-4401) ↵Miss Islington (bot)2017-11-153-18/+25
| | | | | (#4403) (cherry picked from commit 6545256df93ba54f811206107274cfa5a6d76b86)
* [3.6] bpo-32015: Asyncio looping during simultaneously socket read/write ↵Andrew Svetlov2017-11-142-32/+71
| | | | | | | | | | | | | | 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)
* [3.6] bpo-28759: Skip some tests on PermissionError raised by Android ↵xdegaye2017-11-127-35/+50
| | | | | | (GH-4350) (#4380) (cherry picked from commit 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb)
* [3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). ↵xdegaye2017-11-121-0/+62
| | | | | (#4379) (cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
* bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) ↵Miss Islington (bot)2017-11-101-1/+2
| | | | | (#4360) (cherry picked from commit 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9)
* bpo-31222: Make (datetime|date|time).replace return subclass type in Pure ↵Miss Islington (bot)2017-11-102-3/+17
| | | | | Python (GH-4176) (#4356) (cherry picked from commit 191e993365ac3206f46132dcf46236471ec54bfa)
* bpo-31620: have asyncio/queues not leak memory when you've exceptions during ↵Miss Islington (bot)2017-11-072-0/+23
| | | | | waiting (GH-3813) (#4326) (cherry picked from commit c62f0cb3b1f6f9ca4ce463b1c99b0543bdfa38d6)
* [3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. ↵Antoine Pitrou2017-11-076-7/+37
| | | | | | (GH-4314) (#4322) * bpo-31970: Reduce performance overhead of asyncio debug mode.. (cherry picked from commit 921e9432a1461bbf312c9c6dcc2b916be6c05fa0)
* bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (GH-4319) ↵Miss Islington (bot)2017-11-071-1/+3
| | | | | (#4320) (cherry picked from commit 22b1128559bdeb96907da5840960691bb050d11a)
* Fix the sizeof test for dicts with shared keys. (GH-4311) (#4312)Miss Islington (bot)2017-11-071-5/+10
| | | | | By accident the size of the empty dict keys object matched the size of values array. (cherry picked from commit 39a156c505b7dc431a0a4cffcbefca577848db38)
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Miss Islington (bot)2017-11-071-0/+3
| | | | | object is uninitialized (GH-3958) (#4303) (cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)
* bpo-31770: Prevent a crash and refleaks when calling ↵Miss Islington (bot)2017-11-071-0/+18
| | | | | sqlite3.Cursor.__init__() more than once (GH-3968) (#4301) (cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
* [3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)Terry Jan Reedy2017-11-064-5/+5
| | | Manual partial backport of patch that fixed nearly 50 other files.
* bpo-9678: Fix determining the MAC address in the uuid module. (GH-4264) (#4269)Miss Islington (bot)2017-11-041-2/+16
| | | | | | | * 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)
* bpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4259)Miss Islington (bot)2017-11-031-2/+4
| | | (cherry picked from commit a7723d8b09f516a2b75837a3527b8cc7bee89fad)
* bpo-31933: fix blake2 multi-byte params on big endian platforms (GH-4250) ↵Miss Islington (bot)2017-11-031-0/+36
| | | | | | | | | | | | | | | (#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)
* [3.6] bpo-31310: multiprocessing's semaphore tracker should be launched ↵Antoine Pitrou2017-11-032-7/+56
| | | | | | | | | | | 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)
* [3.6] bpo-31308: If multiprocessing's forkserver dies, launch it again when ↵Antoine Pitrou2017-11-032-5/+64
| | | | | | | | | | | | | | | | | | | | | | 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)
* bpo-30806: Fix netrc.__repr__() format (GH-2491)Miss Islington (bot)2017-11-032-9/+12
| | | | | | netrc file format doesn't support quotes and escapes. See https://linux.die.net/man/5/netrc (cherry picked from commit b24cd055ecb3eea9a15405a6ca72dafc739e6531)
* bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵Miss Islington (bot)2017-11-011-1/+8
| | | | | (GH-4220) (#4221) (cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)
* bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵Miss Islington (bot)2017-11-011-0/+3
| | | | | | | 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)
* bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)Miss Islington (bot)2017-11-011-9/+13
| | | (cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
* Fix test_socket.test_create_connection() (GH-4206) (#4208)Miss Islington (bot)2017-11-011-0/+4
| | | | | bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI. (cherry picked from commit 280c22a82a6756e9caffef031c564fd98f1b50e7)
* bpo-31897: Convert unexpected errors when read bogus binary plists into ↵Miss Islington (bot)2017-10-312-5/+68
| | | | | InvalidFileException. (GH-4171) (#4192) (cherry picked from commit db91e0fe2417f075693a194a492b1699829871e7)
* bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)Miss Islington (bot)2017-10-311-8/+24
| | | (cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
* bpo-31629: Add support.SaveSignals (#4183) (#4187)Victor Stinner2017-10-312-1/+43
| | | | | | | 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)
* [3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)Pablo Galindo2017-10-311-0/+5
|
* [3.6] bpo-20047: Make bytearray methods partition() and rpartition() ↵Serhiy Storchaka2017-10-291-6/+29
| | | | | | rejecting (GH-4158) (#4162) separators that are not bytes-like objects.. (cherry picked from commit a2314283ff87c65e1745a42c2f2b716b1a209128)
* bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)Miss Islington (bot)2017-10-281-0/+8
| | | (cherry picked from commit 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a)
* IDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)Miss Islington (bot)2017-10-282-24/+15
| | | | | | 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)
* bpo-31860: Make the font sample in the IDLE font configuration dialog ↵Miss Islington (bot)2017-10-282-34/+43
| | | | | | editable. (GH-4106) (#4154) Changes persist while IDLE remains open (cherry picked from commit ed6554c487fb2403bc88be6deee611c7a4171d33)
* bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)Miss Islington (bot)2017-10-271-8/+8
| | | (cherry picked from commit 7351f9e5a91c403d15c6d556f9989b443f1296f9)
* [3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). ↵xdegaye2017-10-261-2/+101
| | | | | (#4135) (cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)
* Fix trailing whitespaces in C and Python files. (#4131)Serhiy Storchaka2017-10-263-3/+3
|
* [3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. ↵Serhiy Storchaka2017-10-262-7/+56
| | | | | | | | (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)
* bpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111)Serhiy Storchaka2017-10-241-9/+21
|
* [3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)xdegaye2017-10-241-1/+18
| | | (cherry picked from commit 66caacf2f0d6213b049a3097556e28e30440b900)
* bpo-31174: Fix test_tools.test_unparse (GH-4102) (#4104)Miss Islington (bot)2017-10-241-2/+13
| | | | | | 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)
* bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)Miss Islington (bot)2017-10-231-18/+10
| | | | SyntaxError now is raised instead of SyntaxWarning. (cherry picked from commit 3b66ebe7727dba68c2c6ccf0cd85a4c31255b9b4)
* bpo-31752: Fix possible crash in timedelta constructor called with custom ↵Miss Islington (bot)2017-10-231-0/+20
| | | | | | integers. (GH-3947) (#4086) Bad remainder in divmod() in intermediate calculations caused an assertion failure. (cherry picked from commit 4ffd4653a7ec9c97775472276cf5e159e2366bb2)
* [3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)Miss Islington (bot)2017-10-231-1/+33
| | | (cherry picked from commit 85f643023fed3d4e2fb8e399f9ad57f3a65ef237)
* bpo-28286: Add tests for the mode argument of GzipFile. (GH-4074) (#4076)Miss Islington (bot)2017-10-221-0/+24
| | | (cherry picked from commit bcbdd2f8db396c3f0ec9186162b39b5a34effa0e)
* [3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is ↵Antoine Pitrou2017-10-222-2/+29
| | | | | | | | | | | 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)
* bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (#4059)Miss Islington (bot)2017-10-201-0/+4
| | | | and in codecs.escape_decode() when decode an escaped non-ascii byte. (cherry picked from commit 56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f)
* bpo-31632: fix set_protocol() in _SSLProtocolTransport (GH-3817) (GH-3817) ↵Miss Islington (bot)2017-10-192-6/+12
| | | | | (#4052) (cherry picked from commit ea2ef5d0ca869d4550820ed53bdf56013dbb9546)