summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters ↵Miss Islington (bot)2017-10-192-7/+19
| | | | | | | | | | | | | | (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)
* [3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable ↵Miss Islington (bot)2017-10-192-2/+15
| | | | | | | (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)
* Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. ↵Miss Islington (bot)2017-10-181-2/+3
| | | | | | | (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)
* [3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)Miss Islington (bot)2017-10-181-1/+1
| | | | | | | 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)
* [3.6] bpo-31786: Make functions in the select module blocking when timeout ↵Pablo Galindo2017-10-182-0/+25
| | | | | is a small negative value. (GH-4003). (#4022) (cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)
* bpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)Miss Islington (bot)2017-10-181-2/+7
| | | | | test_load_source() now replaces the current __name__ module with a temporary module to prevent side effects. (cherry picked from commit a505ecdc5013cd8f930aacc1ec4fb2afa62d3853)
* [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (GH-4025) (#4028)Miss Islington (bot)2017-10-171-0/+39
| | | (cherry picked from commit 27288de0856c6fbe56354adb312ae706ce8bc7de)
* [3.6] bpo-13802: Use non-Latin characters in IDLE's Font settings sample. ↵Miss Islington (bot)2017-10-171-19/+61
| | | | | | | | | | | | (GH-3960) (#4027) Even if one selects a font that defines a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use other fonts that define a character. The expanded example give users of non-Latin characters a better idea of what they might see in the IDLE shell and editors. To make room for the expanded sample, frames on the Font tab are re-arranged. The Font/Tabs help explains a bit about the additions. (cherry picked from commit e2e42274ee5db1acedf57b63943e1f536d7a25bc)
* [3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions ↵Miss Islington (bot)2017-10-174-6/+87
| | | | | (GH-4014) (#4024) (cherry picked from commit de86073a761cd3539aaca6f886a1f55effc0d9da)
* [3.6] bpo-31792: Restore os.environ in test_buffer when import numpy. ↵Miss Islington (bot)2017-10-161-2/+3
| | | | | (GH-4007) (#4009) (cherry picked from commit 676db4bbf2e7c18dc7c35add17dd3bbdc2d3eeb3)
* [3.6] bpo-25588: Document autotest in idle_test/README.txt. (GH-4000) (#4001)Terry Jan Reedy2017-10-151-1/+10
| | | | Follow-up to Victor's patch that enabled autotest to run in IDLE's Shell. (cherry picked from commit 620f70e)
* bpo-31672: Fix string.Template accidentally matched non-ASCII identifiers ↵INADA Naoki2017-10-142-1/+11
| | | | | | | | | | | | (GH-3872) Pattern `[a-z]` with `IGNORECASE` flag can match to some non-ASCII characters. Straightforward solution for this is using `IGNORECASE | ASCII` flag. But users may subclass `Template` and override only `idpattern`. So we want to avoid changing `Template.flags`. So this commit uses local flag `-i` for `idpattern` and change `[a-z]` to `[a-zA-Z]`. (cherry picked from commit b22273ec5d1992b0cbe078b887427ae9977dfb78)
* [3.6] bpo-25588: Fix regrtest when run inside IDLE (GH-3962) (#3987)Miss Islington (bot)2017-10-131-12/+31
| | | | | | | | When regrtest in run inside IDLE, sys.stdout and sys.stderr are not TextIOWrapper objects and have no file descriptor associated: sys.stderr.fileno() raises io.UnsupportedOperation. Disable faulthandler and don't replace sys.stdout in that case. (cherry picked from commit ccef823939d4ef602f2d8d13d0bfec29eda597a5)
* [3.6] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095) ↵Miss Islington (bot)2017-10-121-0/+24
| | | | | (#3973) (cherry picked from commit de072100775cc29e6cd93a75466cecbd1086f258)
* [3.6] bpo-31567: add or fix decorator markup in docs (GH-3959) (GH-3966)Miss Islington (bot)2017-10-121-2/+2
| | | (cherry picked from commit 0e61e67a57deb4abc677808201d7cf3c38138e02)
* [3.6] bpo-31728: Prevent crashes in _elementtree due to unsafe cleanup of ↵Miss Islington (bot)2017-10-101-0/+32
| | | | | Element.text and Element.tail (GH-3924) (#3945) (cherry picked from commit 39ecb9c71b6e55d8a61a710d0144231bd88f9ada)
* [3.6] bpo-31642: Restore blocking "from" import by setting None in ↵Serhiy Storchaka2017-10-082-1/+16
| | | | | sys.modules. (GH-3834). (#3923) (cherry picked from commit f07e2b64df6304a36fb5e29397d3c77a7ba17704)
* [3.6] bpo-31724: Skip test_xmlrpc_net (GH-3922)Miss Islington (bot)2017-10-081-0/+2
| | | | | | | With the upgrade of buildbot.python.org from Buildbot 0.8.x to 0.9.x, the xmlrpc interface has been removed. This test is now skipped until it can be rewritten to query a suitable substitute. (cherry picked from commit 73ffd3f2036179ed54591ef0455e5ba5694ae5bd)
* [3.6] bpo-31655: Validate keyword names in SimpleNamespace constructor. ↵Miss Islington (bot)2017-10-071-0/+2
| | | | | (GH-3909) (#3920) (cherry picked from commit 79ba471488b936abda5ba5234b1ea90cbc94cae6)
* bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr ↵Rohit Balasubramanian2017-10-071-0/+6
| | | | | (GH-3647) (GH-3733) (cherry picked from commit 9e7b9b21fe45f7d93eaf9382fedfa18247d0d2b2)
* [3.6] bpo-31178: Mock os.waitpid() in test_subprocess (GH-3896) (#3897)3.6Miss Islington (bot)2017-10-051-4/+8
| | | | | | | Fix test_exception_errpipe_bad_data() and test_exception_errpipe_normal() of test_subprocess: mock os.waitpid() to avoid calling the real os.waitpid(0, 0) which is an unexpected side effect of the test. (cherry picked from commit 11045c9d8a21dd9bd182a3939189db02815f9783)
* [3.6] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and ↵Miss Islington (bot)2017-10-031-21/+33
| | | | | | | | split() (GH-3866) (#3874) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests. (cherry picked from commit 27c623c845dd6e4b8e1782666ca3a956636da266)
* [3.6] bpo-31619: Fixed a ValueError when convert a string with large number ↵Miss Islington (bot)2017-10-031-0/+8
| | | | | | of underscores (GH-3827) (#3863) to integer with binary base. (cherry picked from commit 85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3)
* [3.6] bpo-31516: current_thread() should not return a dummy thread at ↵Miss Islington (bot)2017-10-022-2/+30
| | | | | | shutdown (GH-3673) (#3856) bpo-31516: current_thread() should not return a dummy thread at shutdown (cherry picked from commit 1023dbbcb7f05e76053486ae7ef7f73b4cdc5398)
* [3.6] bpo-31158: Fix nondeterministic read in test_pty (GH-3808) (GH-3852)Miss Islington (bot)2017-10-021-2/+19
| | | (cherry picked from commit e6f62f69f07892b993910ff03c9db3ffa5cb9ca5)