]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 14 Aug 2019 21:48:03 +0000 (14:48 -0700)]
bpo-37811: FreeBSD, OSX: fix poll(2) usage in sockets module (GH-15202)
FreeBSD implementation of poll(2) restricts the timeout argument to be
either zero, or positive, or equal to INFTIM (-1).
Unless otherwise overridden, socket timeout defaults to -1. This value
is then converted to milliseconds (-1000) and used as argument to the
poll syscall. poll returns EINVAL (22), and the connection fails.
This bug was discovered during the EINTR handling testing, and the
reproduction code can be found in
https://bugs.python.org/issue23618 (see connect_eintr.py,
attached). On GNU/Linux, the example runs as expected.
This change is trivial:
If the supplied timeout value is negative, truncate it to -1.
(cherry picked from commit
28146206578ebe1b84b48e6f255738a227058c04 )
Co-authored-by: Artem Khramov <akhramov@pm.me>
Miss Islington (bot) [Wed, 14 Aug 2019 17:37:49 +0000 (10:37 -0700)]
bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
(cherry picked from commit
71662dc2f12a7e77e5e1dfe64ec87c1b459c3f59 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Victor Stinner [Wed, 14 Aug 2019 14:30:54 +0000 (16:30 +0200)]
[3.7] bpo-37531: Fix regrtest timeout for subprocesses (GH-15072) (GH-15280)
Co-Authored-By: Joannah Nanjekye <joannah.nanjekye@ibm.com>
(cherry picked from commit
b0c8369c603633f445ccbb5ca7a8742145ff9eec )
Backport also minor win_utils.py fixes from master.
Miss Islington (bot) [Wed, 14 Aug 2019 13:55:53 +0000 (06:55 -0700)]
bpo-37256: Wording in Request class docs (GH-14792)
* bpo-37256: Wording in Request class docs
* 📜🤖 Added by blurb_it.
* Update Misc/NEWS.d/next/Documentation/2019-07-16-14-48-12.bpo-37256.qJTrBb.rst
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit
38c7199beb30ae9a5005c0f0d9df9fae0da3680a )
Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
Victor Stinner [Wed, 14 Aug 2019 11:00:27 +0000 (13:00 +0200)]
bpo-37738: Fix curses addch(str, color_pair) (GH-15071) (GH-15273)
Fix the implementation of curses addch(str, color_pair): pass the
color pair to setcchar(), instead of always passing 0 as the color
pair.
(cherry picked from commit
077af8c2c93dd71086e2c5e5ff1e634b6da8f214 )
Miss Islington (bot) [Wed, 14 Aug 2019 10:16:54 +0000 (03:16 -0700)]
bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)
Fix the following warning with GCC 4.8.5:
Objects/obmalloc.c: warning: ‘no_sanitize_thread’ attribute directive ignored
(cherry picked from commit
7e479c82218450255572e3f5fa1549dc283901ea )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Hai Shi [Wed, 14 Aug 2019 09:52:36 +0000 (04:52 -0500)]
bpo-37583: Add err 113 to support.get_socket_conn_refused_errs() (GH-15259)
Add error number 113 EHOSTUNREACH to get_socket_conn_refused_errs()
of test.support.
Josh Holland [Tue, 13 Aug 2019 19:26:12 +0000 (20:26 +0100)]
[3.7] bpo-37814: Document the empty tuple type annotation syntax (GH-15208) (GH-15262)
https://bugs.python.org/issue37814:
> The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from the examples given in the documentation (I naively expected `Tuple[]` to work); it has been documented in PEP 484 and in mypy, but not in the documentation for the typing module.
https://bugs.python.org/issue37814
(cherry picked from commit
8a784af750fa82c8355903309e5089eb2b60c16b )
Co-authored-by: Josh Holland <anowlcalledjosh@gmail.com>
https://bugs.python.org/issue37814
Automerge-Triggered-By: @gvanrossum
Miss Islington (bot) [Mon, 12 Aug 2019 08:18:55 +0000 (01:18 -0700)]
Fix docs for assert_called and assert_called_once (GH-15218)
(cherry picked from commit
f9590edfeae192ba95aadaee9460dc03a366c51a )
Co-authored-by: Ismail S <ismail-s@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Aug 2019 21:05:37 +0000 (14:05 -0700)]
bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044)
This should fix the IndexError trying to retrieve `DisplayName.display_name` and `DisplayName.value` when the `value` is basically an empty string.
https://bugs.python.org/issue32178
(cherry picked from commit
09a1872a8007048dcdf825a476816c5e3498b8f8 )
Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Aug 2019 08:30:33 +0000 (01:30 -0700)]
bpo-34155: Dont parse domains containing @ (GH-13079)
Before:
>>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
(Address(display_name='', username='a', domain='malicious.org'),)
>>> parseaddr('a@malicious.org@important.com')
('', 'a@malicious.org')
After:
>>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
(Address(display_name='', username='', domain=''),)
>>> parseaddr('a@malicious.org@important.com')
('', 'a@')
https://bugs.python.org/issue34155
(cherry picked from commit
8cb65d1381b027f0b09ee36bfed7f35bb4dec9a9 )
Co-authored-by: jpic <jpic@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2019 15:39:47 +0000 (08:39 -0700)]
bpo-37004: Documented asymmetry of string arguments in difflib.SequenceMatcher for ratio method (GH-13482) (#15158)
https://bugs.python.org/issue37004
(cherry picked from commit
e9cbcd0018abd2a5f2348c45d5c9c4265c4f42dc )
Co-authored-by: sweeneyde <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Tue, 6 Aug 2019 21:55:48 +0000 (14:55 -0700)]
Improve signal documentation (GH-14274)
* add a missing ``.. availability::`` reST explicit markup;
* more consistent "see man page" sentences.
(cherry picked from commit
cfebfef2def48095aa1f4c790a35e51818d67502 )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Miss Islington (bot) [Mon, 5 Aug 2019 00:09:36 +0000 (17:09 -0700)]
bpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
(cherry picked from commit
1213123005d9f94bb5027c0a5256ea4d3e97b61d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 4 Aug 2019 21:07:26 +0000 (14:07 -0700)]
bpo-37748: Re-order the Run menu. (GH-15115)
Put the most common choice, Run Module, at the top.
(cherry picked from commit
14070299cdc0faf36975f0cc2d51824a9abf3db0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Tal Einat [Sun, 4 Aug 2019 19:26:32 +0000 (22:26 +0300)]
[3.7] bpo-34621: backwards-compatible pickle UUID with is_safe=unknown (GH-14834)
This is a fix for a bug introduced in the original implementation of this for 3.7.
Miss Islington (bot) [Sun, 4 Aug 2019 16:47:11 +0000 (09:47 -0700)]
bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
Convert mouse y to line number in the sidebar rather than the text.
(cherry picked from commit
86f1a18abfee5939452f468d80de998918e2afd2 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Serhiy Storchaka [Sun, 4 Aug 2019 14:06:51 +0000 (17:06 +0300)]
[3.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062). (GH-15106)
(cherry picked from commit
ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7 )
Co-authored-by: David H <dheiberg@mozilla.com>
Serhiy Storchaka [Sun, 4 Aug 2019 12:28:21 +0000 (15:28 +0300)]
[3.7] bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. (GH-14996) (GH-15104)
There was a discrepancy between the Python and C implementations.
Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support
to test mixed type comparison.
(cherry picked from commit
17e52649c0e7e9389f1cc2444a53f059e24e6bca )
Miss Islington (bot) [Sat, 3 Aug 2019 18:40:09 +0000 (11:40 -0700)]
Correct description of HTTP status code 308. (GH-15097)
Permanent redirect was explained as a temporary redirect.
(cherry picked from commit
5c72badd06a962fe0018ceb9916f3ae66314ea8e )
Co-authored-by: Florian Wendelborn <1133858+FlorianWendelborn@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2019 23:11:33 +0000 (16:11 -0700)]
bpo-30974: Change os.path.samefile docstring to match docs (GH-7337)
(cherry picked from commit
8e568ef266a2805f9a6042003723d9c050830461 )
Co-authored-by: Timo Furrer <tuxtimo@gmail.com>
Miss Islington (bot) [Fri, 2 Aug 2019 22:40:14 +0000 (15:40 -0700)]
bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)
Previously pdb checked the $HOME environmental variable
to find the user .pdbrc. If $HOME is not set, the user
.pdbrc would not be found.
Change pdb to use `os.path.expanduser('~')` to determine
the user's home directory. Thus, if $HOME is not set (as
in tox or on Windows), os.path.expanduser('~') falls
back on other techniques for locating the user's home
directory.
This follows pip's implementation for loading .piprc.
Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org>
(cherry picked from commit
7ea9a85f132b32347fcbd2cbe1b553a2e9890b56 )
Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Aug 2019 14:35:20 +0000 (07:35 -0700)]
bpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) (#15069)
(cherry picked from commit
2491134029b195d3159a489e1803ee22a7839b41 )
Co-authored-by: mental <m3nta1@yahoo.com>
Miss Islington (bot) [Wed, 31 Jul 2019 20:25:45 +0000 (13:25 -0700)]
bpo-37695: Correct unget_wch error message. (GH-14986)
(cherry picked from commit
c9345e382c630ddcc2b148b30954640e0e435c8a )
Co-authored-by: Anthony Sottile <asottile@umich.edu>
Miss Islington (bot) [Wed, 31 Jul 2019 20:22:19 +0000 (13:22 -0700)]
bpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
Improve performance of sre_parse._uniq function.
(cherry picked from commit
9f55551f3df238e58315e724e50cb0d574d75b94 )
Co-authored-by: yannvgn <hi@yannvgn.io>
Miss Islington (bot) [Wed, 31 Jul 2019 14:57:09 +0000 (07:57 -0700)]
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994) (GH-15055)
(cherry picked from commit
1b29af83bc17e773b0c0d117f5fe1018fde46b0d )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Wed, 31 Jul 2019 05:24:43 +0000 (22:24 -0700)]
bpo-33821: Update IDLE section of What's New 3.7 (GH-15036)
* bpo-33821: Update IDLE section of What's New 3.7
* Fix roles.
(cherry picked from commit
5982b7201b84bfd24a1c2b2836401afee1cad8a7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 31 Jul 2019 05:21:14 +0000 (22:21 -0700)]
bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)
(cherry picked from commit
fff5cb21ae270d8572741e18030765580c7ae361 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 30 Jul 2019 22:33:30 +0000 (15:33 -0700)]
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
(cherry picked from commit
0acb646b8e405864224bfd6d7d5089980dea63ac )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Mon, 29 Jul 2019 23:21:11 +0000 (19:21 -0400)]
bpo-34162: Update idlelib/news.txt for 3.7.5 (GH-15016)
Miss Islington (bot) [Mon, 29 Jul 2019 22:36:20 +0000 (15:36 -0700)]
bpo-34162: Update idlelib/news.txt. (GH-15011)
(cherry picked from commit
f35c51d2eadd297bcf06d4f7c536bd1d8682b724 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 29 Jul 2019 22:22:59 +0000 (15:22 -0700)]
bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (GH-15010)
They pass with tk 8.5.9 (Azure) but fail with the 8.6.x we install.
(cherry picked from commit
e8874b85b4e3bbb735467b0beaa933dcef362004 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 28 Jul 2019 16:22:18 +0000 (09:22 -0700)]
bpo-37692: Improve highlight config sample (GH-14983)
Use an example shell interaction in the sample and better labels for shell elements.
(cherry picked from commit
b222955355c8077a3ceca79195731663d7c3dd5f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 27 Jul 2019 17:14:54 +0000 (10:14 -0700)]
bpo-37628: Fix IDLE config sample sizes (GH-14958)
The boxes for the font and highlight samples are now constrained by the overall config dialog size. They gain scrollbars when the when a large font size makes the samples too large for the box.
(cherry picked from commit
3221a63c69268a9362802371a616f49d522a5c4f )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sat, 27 Jul 2019 03:42:00 +0000 (20:42 -0700)]
bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)
(cherry picked from commit
46ebd4a6a22431ce9676546d2bbe5a6dcd1cc1c1 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Fri, 26 Jul 2019 22:03:23 +0000 (15:03 -0700)]
bpo-32910: Remove implementation detail in venv documentation. (GH-14968)
(cherry picked from commit
91e49575095ca16d1b67dd8822deeb7885e421da )
Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
Miss Islington (bot) [Fri, 26 Jul 2019 17:19:15 +0000 (10:19 -0700)]
bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)
(cherry picked from commit
5380def8269b24a8a3bc46396373a1dc91b1dd1a )
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
Miss Islington (bot) [Fri, 26 Jul 2019 17:13:11 +0000 (10:13 -0700)]
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
(cherry picked from commit
b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 24 Jul 2019 23:57:39 +0000 (16:57 -0700)]
closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package rather than listdir. (14942)
(cherry picked from commit
93e8aa62cfd0a61efed4a61a2ffc2283ae986ef2 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Wed, 24 Jul 2019 17:14:35 +0000 (10:14 -0700)]
[3.7] Touch up venv docs (GH-14922) (GH-14924)
(cherry picked from commit
2f224a077a83ac9de8a12bb7dcc516642b8176d8 )
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
Automerge-Triggered-By: @brettcannon
Miss Islington (bot) [Tue, 23 Jul 2019 20:36:57 +0000 (13:36 -0700)]
bpo-29446: IDLE -- add explicit imports (GH-14919) (#14921)
Stop depending on tkinter import *.
(cherry picked from commit
c6fd6c83b70df76421d05a7628367e64a2f83589 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Tal Einat [Tue, 23 Jul 2019 13:27:04 +0000 (16:27 +0300)]
[3.7] bpo-17535: IDLE editor line numbers (GH-14030)
(cherry picked from commit
7123ea009b0b004062d91f69859bddf422c34ab4 )
Miss Islington (bot) [Tue, 23 Jul 2019 10:21:52 +0000 (03:21 -0700)]
bpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)
(cherry picked from commit
1ebee37dde5c2aabc8e2d2c7bbe2a69b293133bb )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Kyle Stanley [Mon, 22 Jul 2019 18:14:07 +0000 (14:14 -0400)]
[3.7] Fix typos in docs, comments and test assert messages (GH-14872). (#14901)
(cherry picked from commit
96e12d5f4f3c5a20986566038ee763dff3c228a1 )
Co-authored-by: Min ho Kim <minho42@gmail.com>
Miss Islington (bot) [Mon, 22 Jul 2019 12:25:22 +0000 (05:25 -0700)]
Update logging cookbook to show multiple worker processes using the concurrent.futures module. (GH-14905) (GH-14907)
(cherry picked from commit
d309352c6fd93a51f2b3011ca8c2125d3a5d394b )
Miss Islington (bot) [Mon, 22 Jul 2019 08:04:07 +0000 (01:04 -0700)]
bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14903)
* Clear name and parent of mock in autospecced objects used with attach_mock
* Add NEWS entry
* Fix reversed order of comparison
* Test child and standalone function calls
* Use a helper function extracting mock to avoid code duplication and refactor tests.
(cherry picked from commit
7397cda99795a4a8d96193d710105e77a07b7411 )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Sun, 21 Jul 2019 20:38:01 +0000 (13:38 -0700)]
bpo-37627: Add acknowledgment (GH-14883)
(cherry picked from commit
4214f1ec3b3c73badd639229eff81eb5e57b82ec )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 21 Jul 2019 19:54:34 +0000 (12:54 -0700)]
Fix typo found by Min ho Kim (GH-14879)
(cherry picked from commit
8e3a7380ecb310b50e48f47d1f26190cc9c45eb6 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 21 Jul 2019 16:09:17 +0000 (09:09 -0700)]
bpo-37627: Initialize IDLE Custom Run dialog with previous entries (GH-14870)
Repeat the command line arguments most recently entered before so the user can edit them.
(cherry picked from commit
35b87e6001bd991f625abe305951c77ddeb9a9c5 )
Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
Miss Islington (bot) [Fri, 19 Jul 2019 18:27:13 +0000 (11:27 -0700)]
Adjust builtins.zip() docstring to better communicate its signature (GH-14833)
(cherry picked from commit
af2f5b1723b95e45e1f15b5bd52102b7de560f7c )
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Miss Islington (bot) [Fri, 19 Jul 2019 01:28:49 +0000 (18:28 -0700)]
bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)
Move the Editors and IDE section out of the Unix section, to its own section.
https://bugs.python.org/issue37610
(cherry picked from commit
8f040b7a9f442e7c2605ef1cad9c6b5eb7dd7af7 )
Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
Miss Islington (bot) [Thu, 18 Jul 2019 20:46:34 +0000 (13:46 -0700)]
bpo-33610: IDLE's code-context always shows current context immediately (GH-14821)
Eliminate delay of up to 100ms and accompanying visual artifact.
Fix bug of never showing context when hide and show.
(cherry picked from commit
e0a1f8fb5c60886dbddf1a3ccb5d47576bdd43e2 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Thu, 18 Jul 2019 01:22:25 +0000 (18:22 -0700)]
bpo-36390: Gather IDLE Format menu functions into format.py (GH-14827) (GH-14830)
Add two indent spec methods from editor and Rstrip to existing file.
Tests are not added for indent methods because they need change
in lights of 3.x's prohibition on mixing tabs and spaces.
(cherry picked from commit
1b3892243433da7eae7f5f3a4f98f13d309c8926 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 17 Jul 2019 17:32:31 +0000 (10:32 -0700)]
Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)
This exception was caused because the input ended unexpectedly with only one
single quote instead of a pair with some value inside it.
(cherry picked from commit
719a062bcb7b08a56e6576dcd75f4244e6053209 )
Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
Miss Islington (bot) [Wed, 17 Jul 2019 17:02:05 +0000 (10:02 -0700)]
bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794)
* bpo-37461: Fix infinite loop in parsing of specially crafted email headers.
Some crafted email header would cause the get_parameter method to run in an
infinite loop causing a DoS attack surface when parsing those headers. This
patch fixes that by making sure the DQUOTE character is handled to prevent
going into an infinite loop.
(cherry picked from commit
a4a994bd3e619cbaff97610a1cee8ffa87c672f5 )
Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
Miss Islington (bot) [Wed, 17 Jul 2019 14:46:14 +0000 (07:46 -0700)]
bpo-36390: IDLE: Combine region formatting methods. (GH-12481) (GH-14812)
Rename paragraph.py to format.py and add region formatting methods
from editor.py. Add tests for the latter.
(cherry picked from commit
82494aa6d947c4a320c09c58fe0f100cdcf7af0b )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Wed, 17 Jul 2019 08:44:18 +0000 (01:44 -0700)]
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
* Only create CodeContext instances for "real" editors windows, but
not e.g. shell or output windows.
* Remove configuration update Tk event fired every second, by having
the editor window ask its code context widget to update when
necessary, i.e. upon font or highlighting updates.
* When code context isn't being shown, avoid having a Tk event fired
every 100ms to check whether the code context needs to be updated.
* Use the editor window's getlineno() method where applicable.
* Update font of the code context widget before the main text widget
(cherry picked from commit
7036e1de3a87d36c7ef41b8a2b44ed6fc4d34be2 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Wed, 17 Jul 2019 08:32:58 +0000 (01:32 -0700)]
Docs: Correct formatting of a multiline code block (GH-13806)
(cherry picked from commit
bd26a4466b507e196fc9a5e4a6cb7cd6d39f85aa )
Co-authored-by: Joseph Fox-Rabinovitz <madphysicist@users.noreply.github.com>
Miss Islington (bot) [Tue, 16 Jul 2019 21:31:47 +0000 (14:31 -0700)]
bpo-27452: IDLE: Cleanup config.py code (GH-14577) (GH-14803)
(cherry picked from commit
f8d4cc7dbbf54b9c5435c3080582a4aa421a067d )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Tue, 16 Jul 2019 18:15:40 +0000 (11:15 -0700)]
Fix infinite loop in email folding logic (GH-12732)
As far as I can tell, this infinite loop would be triggered if:
1. The value being folded contains a single word (no spaces) longer than
max_line_length
2. The max_line_length is shorter than the encoding's name + 9
characters.
bpo-36564: https://bugs.python.org/issue36564
(cherry picked from commit
f69d5c61981ea97d251db515c7ff280fcc17182d )
Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
Miss Islington (bot) [Mon, 15 Jul 2019 14:44:26 +0000 (07:44 -0700)]
bpo-37284: Add note to sys.implementation doc (GH-14328)
Add a brief note to indicate that any new required attributes must go through the PEP process.
https://bugs.python.org/issue37284
(cherry picked from commit
52693c10e82622d883433b779a45d0bd792f17ed )
Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
Xtreak [Sun, 14 Jul 2019 10:13:59 +0000 (15:43 +0530)]
[3.7] bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726) (GH-14745)
Returns NotImplemented for timedelta and time in __eq__ for different types in Python implementation, which matches the C implementation.
This also adds tests to enforce that these objects will fall back to the right hand side's __eq__ and/or __ne__ implementation.
[bpo-37579](https://bugs.python.org/issue37579)
(cherry picked from commit
e6b46aafad3427463d6264a68824df4797e682f1 )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
https://bugs.python.org/issue37579
Miss Islington (bot) [Sun, 14 Jul 2019 09:23:38 +0000 (02:23 -0700)]
Clarify that plistlib's load and dump functions take a binary file object (GH-9825)
The documentation says that the fp parameter to plistlib.load "should be a
readable and binary file object" but the docstring only mentions that it
should be readable. Similarly, plistlib.dump's docstring only mentions
"writable". This commit clarifies that fp should also be binary.
https://docs.python.org/3/library/plistlib.htmlGH-plistlib.load
https://docs.python.org/3/library/plistlib.htmlGH-plistlib.dump
(cherry picked from commit
0d4f4352efecf1b044c88e234e71774fe04b7d6c )
Co-authored-by: Collin Styles <collingstyles@gmail.com>
Miss Islington (bot) [Sun, 14 Jul 2019 08:24:35 +0000 (01:24 -0700)]
bpo-37571: Remove extra space in ctypes docs (GH14764)
(cherry picked from commit
68c74d05c1fdaf59d8711431884af975ac2ac5f8 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Sun, 14 Jul 2019 08:08:48 +0000 (01:08 -0700)]
bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721)
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit
6b929580eb018cfef386db7f7f66b3a58532eada )
Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
Miss Islington (bot) [Sun, 14 Jul 2019 07:51:49 +0000 (00:51 -0700)]
bpo-36261: Improve example of the preamble field in email docs (GH-14751)
(cherry picked from commit
8efade91b12a13102a09a3856179021e579da5e9 )
Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
Miss Islington (bot) [Sat, 13 Jul 2019 14:59:32 +0000 (07:59 -0700)]
bpo-30088: Document that existing dir structure isn't verified by mailbox.Maildir (GH-1163)
Hi,
I've faced an issue w/ `mailbox.Maildir()`. The case is following:
1. I create a folder with `tempfile.TemporaryDirectory()`, so it's empty
2. I pass that folder path as an argument when instantiating `mailbox.Maildir()`
3. Then I receive an exception happening because "there's no such file or directory" (namely `cur`, `tmp` or `new`) during interaction with Maildir
**Expected result:** subdirs are created during `Maildir()` instance creation.
**Actual result:** subdirs are assumed as existing which leads to exceptions during use.
**Workaround:** remove the actual dir before passing the path to `Maildir()`. It will be created automatically with all subdirs needed.
**Fix:** This PR. Basically it adds creation of subdirs regardless of whether the base dir existed before.
https://bugs.python.org/issue30088
(cherry picked from commit
e44184749c2fd0921867ea5cd20b8e226c2146c2 )
Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
Miss Islington (bot) [Sat, 13 Jul 2019 10:23:10 +0000 (03:23 -0700)]
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
[bpo-37580](https://bugs.python.org/issue37580): Markup typo in http.cookiejar doc
https://bugs.python.org/issue37580
(cherry picked from commit
b5bbb8a740eaf46c78d122185de8b072e9deea2a )
Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.de>
Miss Islington (bot) [Sat, 13 Jul 2019 08:40:54 +0000 (01:40 -0700)]
Fix typo in re.escape documentation (GH-14722)
(cherry picked from commit
fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf )
Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
Miss Islington (bot) [Thu, 11 Jul 2019 17:48:00 +0000 (10:48 -0700)]
closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)
https://bugs.python.org/issue37554
(cherry picked from commit
7cbef72902f32866a416ca6c4e732af4541951b8 )
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Miss Islington (bot) [Thu, 11 Jul 2019 14:57:45 +0000 (07:57 -0700)]
bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)
(cherry picked from commit
9b5ce62cac27fec9dea473865d79c2c654312957 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Thu, 11 Jul 2019 14:16:45 +0000 (07:16 -0700)]
bpo-34369: make kqueue.control() docs better reflect that timeout is positional-only (GH-9499)
(cherry picked from commit
79042ac4348ccc09344014f20dd49401579f8795 )
Co-authored-by: Tal Einat <taleinat@gmail.com>
Miss Islington (bot) [Thu, 11 Jul 2019 02:49:37 +0000 (19:49 -0700)]
Document default parameter of .seek() in the signature. (GH-14691)
(cherry picked from commit
2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Tue, 9 Jul 2019 19:16:44 +0000 (12:16 -0700)]
bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14678)
After
fcf1d00 , IDLE startup failed with python compiled without docstrings.
(cherry picked from commit
6aeb2fe606408aae14c246470794f1303b3be812 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Ned Deily [Mon, 8 Jul 2019 21:53:42 +0000 (17:53 -0400)]
Post release updates
Ned Deily [Mon, 8 Jul 2019 21:51:58 +0000 (17:51 -0400)]
Merge release engineering branch
Miss Islington (bot) [Mon, 8 Jul 2019 21:18:15 +0000 (14:18 -0700)]
Doc: Fix example title. (GH-14639)
(cherry picked from commit
66b4150f6f001640521ae6c9571cd4325cd67394 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Mon, 8 Jul 2019 21:13:59 +0000 (14:13 -0700)]
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Initial report by Michael Blankenship on docs@
(cherry picked from commit
2da622ff77a763327895656779370b80a833d95c )
Co-authored-by: Julien Palard <julien@palard.fr>
Ned Deily [Mon, 8 Jul 2019 18:03:50 +0000 (14:03 -0400)]
3.7.4 final
Miss Islington (bot) [Sat, 6 Jul 2019 06:37:38 +0000 (23:37 -0700)]
bpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Also fix a name misspelling.
(cherry picked from commit
45bc61b97178b27ae05bd3eb95481bf0325795bb )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Ned Deily [Mon, 8 Jul 2019 16:30:24 +0000 (12:30 -0400)]
[3.7] bpo-37500: update Misc/NEWS entries to mention revert
Pablo Galindo [Fri, 5 Jul 2019 19:13:38 +0000 (20:13 +0100)]
[3.7] bpo-37500: Revert commit
85ed1712e428f93408f56fc684816f9a85b0ebc0 (GH-14605)
https://bugs.python.org/issue37500
Miss Islington (bot) [Sun, 7 Jul 2019 15:45:59 +0000 (08:45 -0700)]
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
(cherry picked from commit
f6cdd3ff687ebbf8209d793a18a042ea495c4aeb )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Miss Islington (bot) [Sun, 7 Jul 2019 02:49:39 +0000 (19:49 -0700)]
bpo-37478: Add missing 'and'. (GH-14631)
(cherry picked from commit
a9b40e4546ca631e5ab41376b5b72e8f296f557d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 7 Jul 2019 02:19:08 +0000 (19:19 -0700)]
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14630)
(cherry picked from commit
0717b4d9b3899c5c2ca13031e4ff619a15a4d368 )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Miss Islington (bot) [Sat, 6 Jul 2019 21:55:19 +0000 (14:55 -0700)]
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14625)
0 is a legal index.
(cherry picked from commit
f8709e804d16ec5d44b1d2f00d59a0f78df7b792 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 6 Jul 2019 12:56:10 +0000 (05:56 -0700)]
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
This is done to compensate for the extra stack frames added by
IDLE itself, which cause problems when setting the recursion limit
to low values.
This wraps sys.setrecursionlimit() and sys.getrecursionlimit()
as invisibly as possible.
(cherry picked from commit
fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Sat, 6 Jul 2019 06:37:38 +0000 (23:37 -0700)]
bpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Also fix a name misspelling.
(cherry picked from commit
45bc61b97178b27ae05bd3eb95481bf0325795bb )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 6 Jul 2019 04:08:40 +0000 (21:08 -0700)]
closes bpo-37508: Fix name of type in memory.rst. (GH-14604)
(cherry picked from commit
39a5d17a7f1387582eb484422df450bc09a5543e )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Pablo Galindo [Fri, 5 Jul 2019 19:13:38 +0000 (20:13 +0100)]
[3.7] bpo-37500: Revert commit
85ed1712e428f93408f56fc684816f9a85b0ebc0 (GH-14605)
https://bugs.python.org/issue37500
Miss Islington (bot) [Fri, 5 Jul 2019 08:47:42 +0000 (01:47 -0700)]
Use OSError subclasses in os documentation (GH-14262)
(cherry picked from commit
a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892 )
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Miss Islington (bot) [Thu, 4 Jul 2019 10:45:58 +0000 (03:45 -0700)]
bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)
Fix multiprocessing.util.get_temp_dir() finalizer: clear also the
'tempdir' configuration of the current process, so next call to
get_temp_dir() will create a new temporary directory, rather than
reusing the removed temporary directory.
(cherry picked from commit
9d40554e0da09a44a8547f3f3a2b9dedfeaf7928 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Thu, 4 Jul 2019 01:27:59 +0000 (18:27 -0700)]
bpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) (GH-14581)
* bpo-37459: importlib docs improperly reference get_resource_loader()
(cherry picked from commit
b607d992e76e485f20be3bfd6b311525123f936b )
Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
Miss Islington (bot) [Wed, 3 Jul 2019 02:02:57 +0000 (19:02 -0700)]
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
(cherry picked from commit
aeecf380660ea459d85bb5f59d76bb54f757b5be )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Ned Deily [Tue, 2 Jul 2019 22:31:28 +0000 (18:31 -0400)]
Post release updates
Ned Deily [Tue, 2 Jul 2019 22:23:54 +0000 (18:23 -0400)]
Merge tag 'v3.7.4rc2' into 3.7
Miss Islington (bot) [Tue, 2 Jul 2019 21:22:53 +0000 (14:22 -0700)]
bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)
ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.
Short notations like '127.1' for '127.0.0.1' were already filtered out.
The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37463
(cherry picked from commit
477b1b25768945621d466a8b3f0739297a842439 )
Co-authored-by: Christian Heimes <christian@python.org>
Ned Deily [Tue, 2 Jul 2019 18:51:09 +0000 (14:51 -0400)]
3.7.4rc2
Christian Heimes [Tue, 2 Jul 2019 18:39:42 +0000 (20:39 +0200)]
bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)
ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.
Short notations like '127.1' for '127.0.0.1' were already filtered out.
The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37463
Victor Stinner [Tue, 2 Jul 2019 12:42:39 +0000 (14:42 +0200)]
Revert "Remove unused imports in tests (GH-14518) (GH-14522)" (GH-14555)
This reverts commit
e34b5f4d6483187969d5149c801d056b72ef2ddb .