summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)Miss Islington (bot)2018-04-292-2/+29
| | | | | (cherry picked from commit 70af06cdc4e8fbee0b9d7d46bdc193097d4bc71f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. ↵Serhiy Storchaka2018-04-294-2/+31
| | | | | | (GH-6630). (GH-6633) (cherry picked from commit 2e38cc39330bd7f3003652869b644110a97a78d8)
* bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)Miss Islington (bot)2018-04-232-0/+12
| | | | | (cherry picked from commit d5a2377c3d70e4143bcbee4a765b3434e21f683a) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* [3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)Terry Jan Reedy2018-04-212-2/+2
| | | (cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)
* bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)Miss Islington (bot)2018-04-203-3/+3
| | | | | | Upgrade ensurepip to bundle pip 10.0.1 (cherry picked from commit 0399cf9b5e370516e3d0aed6a63ff74aff5eadb5) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* bpo-33189: pygettext.py now accepts only literal strings (GH-6364)Miss Islington (bot)2018-04-191-6/+65
| | | | | | | as docstrings and translatable strings, and rejects bytes literals and f-string expressions. (cherry picked from commit 69524821a87251b7aee966f6e46b3810ff5aaa64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519)Miss Islington (bot)2018-04-191-7/+22
| | | | | | Converting with line_info=False and col_info=True crashed before. (cherry picked from commit e5362eaa75a154c6e91c5b1c47719d0a0f5ca48b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529)Miss Islington (bot)2018-04-191-1/+1
| | | | | (cherry picked from commit e3a523a0fa16aec880880928303bfcbd1fb74bc2) Co-authored-by: Denis Osipov <osipov_d@list.ru>
* Fix spelling typo (GH-6443) (#6508)Miss Islington (bot)2018-04-171-1/+1
| | | | | (cherry picked from commit 28e8b66d6c632552765b5fb4573b7f3c9decc3c1) Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
* bpo-33295: Skip test using missing external site (GH-6504) (GH-6511)Miss Islington (bot)2018-04-171-0/+1
| | | | | | | | `test_urllib2net.OtherNetworkTests.test_sites_no_connection_close` used `http://www.imdb.com/` but it is moved to https so the test is not valid anymore. Skip test for the moment to allow CI to proceed. (cherry picked from commit 36d56ea826caffbeac0fc0c6d90248b80516e33c) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)Miss Islington (bot)2018-04-171-2/+2
| | | | | (cherry picked from commit 4b685bf7192fff48c8effeeae4f4d64f9420ec0f) Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
* bpo-31920: Fixed handling directories as arguments in the ``pygettext`` ↵Miss Islington (bot)2018-04-091-1/+25
| | | | | | | | script. (GH-6259) Based on patch by Oleg Krasnikov. (cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix misleading docsting of shelve.open(). (GH-6427)Miss Islington (bot)2018-04-091-1/+1
| | | | | | | The protocol parameter can be any protocol supported by the pickle module. (cherry picked from commit 2ef65f346a5e829a886c075f519e3a49a2ebbde7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Update docstring of tempfile._RandomNameSequence (GH-6414)Miss Islington (bot)2018-04-091-1/+1
| | | | | | | | When bpo-12015 got resolved by increasing the length of the random string generated by _RandomNameSequence from six to eight characters, the docstring of the class was not adjusted accordingly. (cherry picked from commit 9c463ec88ba21764f6fff8e01d6045a932a89438) Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
* Add a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6422)Miss Islington (bot)2018-04-081-0/+8
| | | | | (cherry picked from commit 9265dd72e5ec1cfa5fcdb5be8ebffe1d9994bd4b) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6391)Miss Islington (bot)2018-04-052-8/+20
| | | | | (cherry picked from commit 01b731fc2b04744a11e32f93aba8bfb9ddb3dd29) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-33203: Ensure random.choice always raises IndexError on empty sequence ↵Miss Islington (bot)2018-04-052-1/+6
| | | | | | | (GH-6338) (GH-6388) (cherry picked from commit 091e95e9004b794280ab35becec2c3e30dd5e96e) Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
* bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)Miss Islington (bot)2018-04-041-1/+41
| | | | | | | Different paths are executed for normal exit and for leaving the 'async with' block with 'break', 'continue' or 'return'. (cherry picked from commit 2eeac269dd1e04a2a179384576986c3e47895ee0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-29922: Improve error messages in 'async with' (GH-6352)Miss Islington (bot)2018-04-041-4/+9
| | | | | | when __aenter__() or __aexit__() return non-awaitable object. (cherry picked from commit a68f2f0578bbf812fa2264d0e0bb388340d6e230) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33209: End framing at the end of C implementation of ↵Miss Islington (bot)2018-04-031-17/+18
| | | | | | | pickle.Pickler.dump(). (GH-6363) (cherry picked from commit c869529ea9fbed574d34cf7ac139ca3f81b62ef0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33204: IDLE - revise and extend colorizer test. (GH-6347)Miss Islington (bot)2018-04-021-3/+6
| | | | | | Followup to primary PR for the issue, GH-6344. (cherry picked from commit 55966f3a0d5f1bf823bd22ce1abbde267b06552f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33204: IDLE: consistently color invalid string prefixes (GH-6344)Miss Islington (bot)2018-04-021-4/+7
| | | | | | | A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently color as much of the prefix, starting at the right, as is valid. (cherry picked from commit da58533ac67b01ce8f6466e6f03ff6b8b3bb04d5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] Fix duplicating words words. (GH-6296) (GH-6298)Terry Jan Reedy2018-03-282-2/+2
| | | | Backport idlelib duplications. (cherry picked from commit bac2d5b)
* bpo-32872: Avoid regrtest compatibility issue with namespace packages. ↵Miss Islington (bot)2018-03-281-1/+1
| | | | | | | (GH-6276) (GH-6278) (cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d) Co-authored-by: Ned Deily <nad@python.org>
* bpo-27212: Modify islice recipe to consume initial values preceding start ↵Miss Islington (bot)2018-03-271-0/+67
| | | | | | | (GH-6195) (GH-6267) (cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32844: Fix a subprocess misredirection of a low fd (GH5689)Miss Islington (bot)2018-03-261-0/+50
| | | | | | | | | | | | | bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr. When redirecting, subprocess attempts to achieve the following state: each fd to be redirected to is less than or equal to the fd it is redirected from, which is necessary because redirection occurs in the ascending order of destination descriptors. It fails to do so in a couple of corner cases, for example, if 1 is redirected to 2 and 0 is closed in the parent. (cherry picked from commit 0e7144b064a19493a146af94175a087b3888c37b) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-33096: Fix ttk.Treeview.insert. (GH-6228)Miss Islington (bot)2018-03-262-1/+10
| | | | | | | Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same. (cherry picked from commit 3ab44c0783eebdff687014f7d14d5dec59b6bd39) Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
* [3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)Christian Heimes2018-03-241-0/+1
| | | | | | | | | | | | | LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7. Documentation updates and fixes for failing tests will be provided in another patch set. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 4ca0739c9d97ac7cd45499e0d31be68dc659d0e1) Co-authored-by: Christian Heimes <christian@python.org>
* [3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. ↵Serhiy Storchaka2018-03-233-1/+87
| | | | | | (GH-6154). (GH-6199) (cherry picked from commit b9744e924ca07ba7db977e5958b91cd8db565632)
* Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)Miss Islington (bot)2018-03-223-2/+2
| | | | | (cherry picked from commit d93b5161af12291f3f98a260c90cc2975ea9e9cd) Co-authored-by: Donald Stufft <donald@stufft.io>
* bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)Miss Islington (bot)2018-03-212-74/+61
| | | | | | | The result of host() was not empty when the network is constructed by a tuple containing an integer mask and only 1 bit left for addresses. (cherry picked from commit 10b134a07c898c2fbc5fd3582503680a54ed80a2) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* bpo-18802: Add more details to ipaddress documentation (GH-6083)Miss Islington (bot)2018-03-211-0/+3
| | | | | | Original patch by Jon Foster and Berker Peksag. (cherry picked from commit 5609b78392d59c7362ef8aa5c4a4529325f01f27) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-19417: Add test_bdb.py (GH-5217)xdegaye2018-03-192-2/+1152
| | | (cherry picked from commit 3fe33043ee83d19e15551094fc1e0984617ded3c)
* [3.6] bpo-33041: Add tests for jumps in/out of 'async with' blocks. ↵Serhiy Storchaka2018-03-181-1/+133
| | | | | | (GH-6110). (GH-6141) (cherry picked from commit bc300ce205f99acb1ef92c37de06dc76147e073b)
* Update pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (#6136)Miss Islington (bot)2018-03-173-2/+2
| | | | | (cherry picked from commit 7f81bb2addbbccfa45a2fc1aa6030f26dcf4bd78) Co-authored-by: Donald Stufft <donald@stufft.io>
* bpo-32374: m_traverse may be called with m_state=NULL (GH-5140)Miss Islington (bot)2018-03-171-1/+15
| | | | | | | | Multi-phase initialized modules allow m_traverse to be called while the module is still being initialized, so module authors may need to account for that. (cherry picked from commit c2b0b12d1a137ada1023ab7c10b8d9a0249d95f9) Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
* 3.6.5rc1v3.6.5rc1Ned Deily2018-03-141-242/+367
|
* lib2to3: Add more tests (GH-6101) (#6109)Miss Islington (bot)2018-03-131-0/+108
| | | | | (cherry picked from commit 74f56878cdee18d485e4f8b485d55ce62e38f4c9) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. ↵Miss Islington (bot)2018-03-131-11/+57
| | | | | | | (GH-5928) (cherry picked from commit e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055) Co-authored-by: xdegaye <xdegaye@gmail.com>
* bpo-33064: lib2to3: support trailing comma after *args and **kwargs ↵Miss Islington (bot)2018-03-132-26/+37
| | | | | | | | | | | | (GH-6096) (#6098) New tests also added. I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was withdrawn, Kees Blom's railroad program has been lost to the sands of time for at least 16 years now (I found a python-dev post from people looking for it). (cherry picked from commit b51f5de71163f096d2d5229ede5379cdb284f651) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.6] bpo-31804: Fix multiprocessing.Process with broken standard streams ↵Antoine Pitrou2018-03-114-12/+45
| | | | | | | | (GH-6079) (GH-6081) In some conditions the standard streams will be None or closed in the child process (for example if using "pythonw" instead of "python" on Windows). Avoid failing with a non-0 exit code in those conditions. Report and initial patch by poxthegreat.. (cherry picked from commit e756f66c83786ee82f5f7d45931ae50a6931dd7f)
* [3.6] bpo-33026: Fix jumping out of "with" block by setting f_lineno. ↵Miss Islington (bot)2018-03-111-0/+28
| | | | | | | | (GH-6026). (GH-6074) (GH-6075) (cherry picked from commit 26c9f565d016db21257a60d29ab2c99383dd5ac7) (cherry picked from commit 04aadf23eac51fec2e436c5960c1362bbb7d03de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-33037: Skip sending/receiving after SSL transport closing ↵Andrew Svetlov2018-03-102-20/+41
| | | | | | (GH-6044) (GH-6058) * Skip write()/data_received() if sslpipe is destroyed. (cherry picked from commit 5e80a71ab67045fecec46573a1892e240b569ace)
* bpo-32517: fix test_read_pty_output() hangs on macOS 10.13.2+ (GH-6037)Nathan Henrie2018-03-091-0/+1
| | | | | test_asyncio hangs indefinitely on macOS 10.13.2+ on `read_pty_output()` using the KqueueSelector. Closing `proto.transport` (as is done in `write_pty_output()`) seems to fix it.
* [3.6] bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW ↵Miss Islington (bot)2018-03-082-0/+26
| | | | | | | | (GH-1559) (GH-5954) (cherry picked from commit 9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3) Co-authored-by: Erik Bray <erik.m.bray@gmail.com>
* bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)Miss Islington (bot)2018-03-071-1/+2
| | | | | (cherry picked from commit bc3f2289b9007396bfb7f986bee477b6176c1822) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* bpo-33009: Fix inspect.signature() for single-parameter partialmethods. ↵Miss Islington (bot)2018-03-062-1/+12
| | | | | | | (GH-6004) (cherry picked from commit 8a387219bdfb6ee34928d6168ac42ca559f11c9a) Co-authored-by: Yury Selivanov <yury@magic.io>
* [3.6] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (GH-5990)Steve Dower2018-03-051-0/+35
|
* bpo-32984: IDLE - set __file__ for startup files (GH-5981)Miss Islington (bot)2018-03-051-0/+3
| | | | | | | | | | | | Like Python, IDLE optionally runs one startup file in the Shell window before presenting the first interactive input prompt. For IDLE, option -s runs a file named in environmental variable IDLESTARTUP or PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup file name before running the file and unsets it before the first prompt. IDLE now does the same when run normally, without the -n option. (cherry picked from commit 22c82be5df70c3d51e3f89b54fe1d4fb84728c1e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32857: Raise error when tkinter after_cancel() is called with None. ↵Miss Islington (bot)2018-03-042-3/+114
| | | | | | | (GH-5701) (cherry picked from commit 74382a3f175ac285cc924a73fd758e8dc3cc41bb) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>