]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)
Miss Islington (bot) [Sun, 8 Sep 2019 10:36:38 +0000 (03:36 -0700)] 
bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)

This is a complement to PR 13375.
(cherry picked from commit 3c87a667bb367ace1de6bd1577fdb4f66947da52)

Co-authored-by: HongWeipeng <hongweichen8888@sina.com>
6 years ago[3.8] Correct Roman-numeral example in Unicode HOWTO. (GH-15541). (GH-15728)
Miss Islington (bot) [Sun, 8 Sep 2019 10:28:40 +0000 (03:28 -0700)] 
[3.8] Correct Roman-numeral example in Unicode HOWTO. (GH-15541). (GH-15728)

(cherry picked from commit 32a960f8e1015b64b4b955b3d62920c5903d4c6f)

Co-authored-by: Greg Price <gnprice@gmail.com>
(cherry picked from commit 3be4b107490be27470cb9a101a8dfecf446fd992)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)
Miss Islington (bot) [Sat, 7 Sep 2019 07:16:27 +0000 (00:16 -0700)] 
bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)

(cherry picked from commit 3ccdbc33385a849c60a268def578cb06b8d41be6)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
6 years agobpo-38041: Refine IDLE Shell restart lines. (GH-15709)
Miss Islington (bot) [Fri, 6 Sep 2019 18:19:30 +0000 (11:19 -0700)] 
bpo-38041: Refine IDLE Shell restart lines.  (GH-15709)

 Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
(cherry picked from commit 38da805d563422cf1bb9cd9be24c73806840fe30)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-37380: subprocess: don't use _active on win (GH-14360) (GH-15706)
Miss Islington (bot) [Fri, 6 Sep 2019 09:14:24 +0000 (02:14 -0700)] 
bpo-37380: subprocess: don't use _active on win (GH-14360) (GH-15706)

As noted by @eryksun in [1] and [2], using _cleanup and _active(in
__del__) is not necessary on Windows, since:

> Unlike Unix, a process in Windows doesn't have to be waited on by
> its parent to avoid a zombie. Keeping the handle open will actually
> create a zombie until the next _cleanup() call, which may be never
> if Popen() isn't called again.

This patch simply defines `subprocess._active` as `None`, for which we already
have the proper logic in place in `subprocess.Popen.__del__`, that prevents it
from trying to append the process to the `_active`. This patch also defines
`subprocess._cleanup` as a noop for Windows.

[1] https://bugs.python.org/issue37380GH-msg346333
[2] https://bugs.python.org/issue36067GH-msg336262

Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
(cherry picked from commit 042821ae3cf537e01963c9ec85d1a454d921e826)

Co-authored-by: Ruslan Kuprieiev <kupruser@gmail.com>
6 years agoCorrect minor gramatical mistake in sys.settrace doc (GH-15637)
Miss Islington (bot) [Thu, 5 Sep 2019 11:31:50 +0000 (04:31 -0700)] 
Correct minor gramatical mistake in sys.settrace doc (GH-15637)

(cherry picked from commit 3038e87ba848023470f571242a8bb5a206c24430)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368)
Miss Islington (bot) [Thu, 5 Sep 2019 01:58:22 +0000 (18:58 -0700)] 
bpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368)

Modify the wheel event handler so it can also be used for module, path, and stack browsers.
Patch by George Zhang.
(cherry picked from commit 2cd902585815582eb059e3b40e014ebe4e7fdee7)

Co-authored-by: GeeTransit <geetransit@gmail.com>
6 years ago[3.7] bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH...
Dong-hee Na [Thu, 5 Sep 2019 01:16:39 +0000 (10:16 +0900)] 
[3.7] bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522) (GH-15687)

https://bugs.python.org/issue22347
(cherry picked from commit 87bd2071c756188b6cd577889fb1682831142ceb)

https://bugs.python.org/issue22347

Automerge-Triggered-By: @maxking
6 years agoFix idlelib.help comments (GH-15669)
Miss Islington (bot) [Thu, 5 Sep 2019 00:41:45 +0000 (17:41 -0700)] 
Fix idlelib.help comments (GH-15669)

(cherry picked from commit 6cd9666ce93658ae91f07b396aa6932b362a61d3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoFix grammar in asyncio-dev.rst (GH-15672)
Miss Islington (bot) [Wed, 4 Sep 2019 06:13:24 +0000 (23:13 -0700)] 
Fix grammar in asyncio-dev.rst (GH-15672)

Automerge-Triggered-By: @ned-deily
(cherry picked from commit 675d17cec49ed7f7eb01d1bc3ae6999c728e070d)

Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
6 years agobpo-38022: IDLE: upgrade help.html to sphinx 2.x HTML5 output (GH-15664)
Miss Islington (bot) [Tue, 3 Sep 2019 21:09:57 +0000 (14:09 -0700)] 
bpo-38022: IDLE: upgrade help.html to sphinx 2.x HTML5 output (GH-15664)

The HTML5 output from Sphinx 2.x adds  '<p>' tags within list elements.  Using a new prevtag attribute, ignore these instead of emitting unwanted '\n\n'.

Also stop looking for 'first' classes on tags (no longer present) and fix the bug of double-spacing instead of single spacing after <pre> blocks.
(cherry picked from commit 580bdb0ece681537eadb360f0c796123ead7a559)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years ago[3.7] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239...
Ashwin Ramaswami [Tue, 3 Sep 2019 16:42:53 +0000 (09:42 -0700)] 
[3.7] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239) (GH-15654)

…aders. (GH-15239)

Fixes a case in which email._header_value_parser.get_unstructured hangs the system for some invalid headers. This covers the cases in which the header contains either:
- a case without trailing whitespace
- an invalid encoded word

https://bugs.python.org/issue37764

This fix should also be backported to 3.7 and 3.8

https://bugs.python.org/issue37764
(cherry picked from commit c5b242f87f31286ad38991bc3868cf4cfbf2b681)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
https://bugs.python.org/issue37764

6 years agobpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)
Miss Islington (bot) [Tue, 3 Sep 2019 05:35:19 +0000 (22:35 -0700)] 
bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)

Extending the hover delay in test_tooltip should avoid spurious test_idle failures.
One longer delay instead of two shorter delays results in a net speedup.
(cherry picked from commit 132acaba5a7f01373ca624b1a5975b190fe866f5)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-36853: Fix suspicious.py to actually print the unused rules (#13579) (#15653)
Anthony Sottile [Mon, 2 Sep 2019 19:17:18 +0000 (12:17 -0700)] 
bpo-36853: Fix suspicious.py to actually print the unused rules (#13579) (#15653)

* Fix suspicious.py to actually print the unused rules

* Fix the other `self.warn` calls

(cherry picked from commit e1786b54162e2bfb01ca5aafa19d596c4af5a803)

6 years agoIDLE: Fix 2 typos found by Min ho Kim. (GH-15617)
Miss Islington (bot) [Fri, 30 Aug 2019 20:34:48 +0000 (13:34 -0700)] 
IDLE: Fix 2 typos found by Min ho Kim. (GH-15617)

(cherry picked from commit 15119bc2a7e902ae1c6988556c3bef3de87fa789)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-37979: Add alternative to fromisoformat in documentation (GH-15596)
Miss Islington (bot) [Thu, 29 Aug 2019 14:54:04 +0000 (07:54 -0700)] 
bpo-37979: Add alternative to fromisoformat in documentation (GH-15596)

Adds a link to `dateutil.parser.isoparse` in the documentation.

It would be nice to set up intersphinx for things like this, but I think we can leave that for a separate PR.

CC: @pitrou
[bpo-37979](https://bugs.python.org/issue37979)

https://bugs.python.org/issue37979

Automerge-Triggered-By: @pitrou
(cherry picked from commit 59725f3badb3028636c8906ecac4ceb0a37f3982)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
6 years agobpo-37372: Fix error unpickling datetime.time objects from Python 2 with seconds...
Miss Islington (bot) [Thu, 29 Aug 2019 07:57:41 +0000 (00:57 -0700)] 
bpo-37372: Fix error unpickling datetime.time objects from Python 2 with seconds>=24. (GH-14307)

(cherry picked from commit 122376df550b71dd3bec0513c7483cc1714212fa)

Co-authored-by: Justin Blanchard <UncombedCoconut@gmail.com>
6 years agobpo-37950: Fix ast.dump() when call with incompletely initialized node. (GH-15510)
Miss Islington (bot) [Thu, 29 Aug 2019 07:04:44 +0000 (00:04 -0700)] 
bpo-37950: Fix ast.dump() when call with incompletely initialized node. (GH-15510)

(cherry picked from commit e64f948e762a6b9fd02e2902ccf42438df6fcb61)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-36871: Ensure method signature is used when asserting mock calls to a method...
Miss Islington (bot) [Thu, 29 Aug 2019 06:57:37 +0000 (23:57 -0700)] 
bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15577)

* Fix call_matcher for mock when using methods

* Add NEWS entry

* Use None check and convert doctest to unittest

* Use better name for mock in tests. Handle _SpecState when the attribute was not accessed and add tests.

* Use reset_mock instead of reinitialization. Change inner class constructor signature for check

* Reword comment regarding call object lookup logic
(cherry picked from commit c96127821ebda50760e788b1213975a0d5bea37f)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agobpo-36167: fix an incorrect capitalization (GH-14482)
Miss Islington (bot) [Thu, 29 Aug 2019 05:49:20 +0000 (22:49 -0700)] 
bpo-36167: fix an incorrect capitalization (GH-14482)

(cherry picked from commit 3aa48b88c7485aca1fdfa54b3d8e53931ff067fd)

Co-authored-by: avinassh <avinassh@users.noreply.github.com>
6 years agobpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename (GH-14736)
Miss Islington (bot) [Thu, 29 Aug 2019 04:52:43 +0000 (21:52 -0700)] 
bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename (GH-14736)

(cherry picked from commit b0caf329815120acf50287e29858093d328b0e3c)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
6 years agoFix typo: Pyssize_t => Py_ssize_t (GH-15411) (#15520)
Miss Islington (bot) [Wed, 28 Aug 2019 18:54:57 +0000 (11:54 -0700)] 
Fix typo: Pyssize_t => Py_ssize_t (GH-15411) (#15520)

(cherry picked from commit b3b9619f5e1e7ebe3fbb73eae4ec878312056a90)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
6 years agocloses bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH...
Miss Islington (bot) [Wed, 28 Aug 2019 17:37:38 +0000 (10:37 -0700)] 
closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15560)

https://bugs.python.org/issue37965

https://bugs.python.org/issue37965

Automerge-Triggered-By: @benjaminp
(cherry picked from commit 55aabee07501e1468082b3237620e4ecd75c5da6)

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
6 years agobpo-37936: Remove some .gitignore rules that were intended locally. (GH-15542)
Miss Islington (bot) [Tue, 27 Aug 2019 18:41:38 +0000 (11:41 -0700)] 
bpo-37936: Remove some .gitignore rules that were intended locally. (GH-15542)

These appeared in commit c5ae169e1.  The comment on them, as well as
the presence among them of a rule for the .gitignore file itself,
indicate that the author intended these lines to remain only in their
own local working tree -- not to get committed even to their own repo,
let alone merged upstream.

They did nevertheless get committed, because it turns out that Git
takes no notice of what .gitignore says about files that it's already
tracking... for example, this .gitignore file itself.

Give effect to these lines' original intention, by deleting them. :-)

Git tip, for reference: the `.git/info/exclude` file is a handy way
to do exactly what these lines were originally intended to do.  A
related handy file is `~/.config/git/ignore`.  See gitignore(5),
aka `git help ignore`, for details.

https://bugs.python.org/issue37936

Automerge-Triggered-By: @zware
(cherry picked from commit 8c9e9b0cd5b24dfbf1424d1f253d02de80e8f5ef)

Co-authored-by: Greg Price <gnprice@gmail.com>
6 years agobpo-36205: Fix the rusage implementation of time.process_time() (GH-15538)
Miss Islington (bot) [Tue, 27 Aug 2019 04:31:27 +0000 (21:31 -0700)] 
bpo-36205: Fix the rusage implementation of time.process_time() (GH-15538)

(cherry picked from commit 8bf5fef8737fdd12724b9340d76a4ed391c4ad8a)

Co-authored-by: vrajivk <3413293+vrajivk@users.noreply.github.com>
6 years agoFix an invalid assertEqual() call in test_descr.py (GH-15318)
Miss Islington (bot) [Mon, 26 Aug 2019 22:59:18 +0000 (15:59 -0700)] 
Fix an invalid assertEqual() call in test_descr.py (GH-15318)

(cherry picked from commit 6b2e3256b6752055498f41f343fb22100845bc9d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoRemove leftovers from the times when long long wasn't required (GH-15501) (GH-15517)
Miss Islington (bot) [Mon, 26 Aug 2019 22:35:06 +0000 (15:35 -0700)] 
Remove leftovers from the times when long long wasn't required (GH-15501) (GH-15517)

In a38e9d139929a227e3899fbb638bc46c6cc6d8ba pyconfig.h.in was
manually edited and that edit was overwritten when running autoreconf.
(cherry picked from commit 52c1a6a15a471f75b775309ed1120d05f69010ca)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
6 years ago[3.7] bpo-37664: Update ensurepip bundled wheels, again (GH-15483) (GH-15529)
Steve Dower [Mon, 26 Aug 2019 19:19:53 +0000 (12:19 -0700)] 
[3.7] bpo-37664: Update ensurepip bundled wheels, again (GH-15483) (GH-15529)

https://bugs.python.org/issue37664

Automerge-Triggered-By: @zooba
6 years agobpo-36917: Backport basic test for ast.NodeVisitor. (GH-15511)
Serhiy Storchaka [Mon, 26 Aug 2019 11:48:55 +0000 (14:48 +0300)] 
bpo-36917: Backport basic test for ast.NodeVisitor. (GH-15511)

6 years agobpo-37805: Add tests for json.dump(..., skipkeys=True) (GH-15489)
Miss Islington (bot) [Mon, 26 Aug 2019 07:36:36 +0000 (00:36 -0700)] 
bpo-37805: Add tests for json.dump(..., skipkeys=True) (GH-15489)

https://bugs.python.org/issue37805

Automerge-Triggered-By: @methane
(cherry picked from commit 44cd86bbdddb1f7b05deba2c1986a1e98f992429)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
6 years agobpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)
Miss Islington (bot) [Mon, 26 Aug 2019 06:53:38 +0000 (23:53 -0700)] 
bpo-37824: Properly handle user input warnings in IDLE shell. (GH-15500)

Cease turning SyntaxWarnings into SyntaxErrors.
(cherry picked from commit 1039f39c9c6edb4c185856c19316d3a4eb561c38)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoDoc: Keep the venv/* exclude pattern. (GH-15229)
Miss Islington (bot) [Mon, 26 Aug 2019 06:19:58 +0000 (23:19 -0700)] 
Doc: Keep the venv/* exclude pattern. (GH-15229)

In case it has been previously created.
(cherry picked from commit 73e054970193fc421c533564a4189be522f9c331)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-29553: Fix ArgumentParser.format_usage() for mutually exclusive groups (GH-14976)
Miss Islington (bot) [Sun, 25 Aug 2019 21:30:49 +0000 (14:30 -0700)] 
bpo-29553: Fix ArgumentParser.format_usage() for mutually exclusive groups (GH-14976)

Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
Co-authored-by: Flavian Hautbois <flavianh@sicara.com>
(cherry picked from commit da27d9b9dc44913ffee8f28d9638985eaaa03755)

6 years agobpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)
Miss Islington (bot) [Sun, 25 Aug 2019 06:17:19 +0000 (23:17 -0700)] 
bpo-37929: IDLE: avoid Squeezer-related config dialog crashes (GH-15452)

These were caused by keeping around a reference to the Squeezer
instance and calling it's load_font() upon config changes, which
sometimes happened even if the shell window no longer existed.

This change completely removes that mechanism, instead having the
editor window properly update its width attribute, which can then
be used by Squeezer.
(cherry picked from commit d4b4c00b57d24f6ee2cf3a96213406bb09953df3)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agoFix typo and rearrange words in IDLE news item (GH-15471)
Miss Islington (bot) [Sat, 24 Aug 2019 21:44:22 +0000 (14:44 -0700)] 
Fix typo and rearrange words in IDLE news item (GH-15471)

Redo of GH-15402 by GeeTransit and Kyle Stanley.
(cherry picked from commit 0dfc025cccc5adf4f209e2421c7686b1e637eeae)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoClarify argument types in datetime docs. (GH-15459)
Miss Islington (bot) [Sat, 24 Aug 2019 19:58:14 +0000 (12:58 -0700)] 
Clarify argument types in datetime docs. (GH-15459)

"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst

Automerge-Triggered-By: @pganssle
(cherry picked from commit c5218fce02d6bd7bb343db20c8f14e8d9640783a)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
6 years ago[3.7] bpo-37461: Fix typo (inifite -> infinite) (GH-15430)
GeeTransit [Sat, 24 Aug 2019 04:30:25 +0000 (00:30 -0400)] 
[3.7] bpo-37461: Fix typo (inifite -> infinite) (GH-15430)

6 years agoFix funny typo in Doc/bugs. (GH-15412)
Miss Islington (bot) [Sat, 24 Aug 2019 04:15:56 +0000 (21:15 -0700)] 
Fix funny typo in  Doc/bugs. (GH-15412)

Fix typo in description of link to mozilla bug report writing guidelines.

Though the URL is misleading, we're indeed trying to write bug _reports_, not to add bugs.

Automerge-Triggered-By: @ned-deily
(cherry picked from commit e17f201cd9293f16593cc507d86f2c0e17b8f2c9)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
6 years agobpo-37549: os.dup() fails for standard streams on Windows 7 (GH-15389)
Miss Islington (bot) [Fri, 23 Aug 2019 19:01:38 +0000 (12:01 -0700)] 
bpo-37549: os.dup() fails for standard streams on Windows 7 (GH-15389)

(cherry picked from commit 5be666010e4df65dc4d831435cc92340ea369f94)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoFix _PyTime_MIN/MAX values (GH-15384)
Miss Islington (bot) [Fri, 23 Aug 2019 15:56:51 +0000 (08:56 -0700)] 
Fix _PyTime_MIN/MAX values (GH-15384)

_PyTime_t type is defined as int64_t, and so min/max are INT64_MIN/INT64_MAX,
not PY_LLONG_MIN/PY_LLONG_MAX.
(cherry picked from commit 8e76c456226438f2e4931ce7baf05ac8faae34a1)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
6 years ago[3.7] bpo-37915: Fix comparison between tzinfo objects and timezone objects (GH-15390...
Pablo Galindo [Fri, 23 Aug 2019 10:12:31 +0000 (11:12 +0100)] 
[3.7] bpo-37915: Fix comparison between tzinfo objects and timezone objects (GH-15390) (GH-15417)

https://bugs.python.org/issue37915

Automerge-Triggered-By: @pablogsal.
(cherry picked from commit 4be11c009abe88175fa164b45e4838e7267dfa97)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-27961: Remove leftovers from the times when long long wasn't required (GH-15388)
Miss Islington (bot) [Thu, 22 Aug 2019 16:06:08 +0000 (09:06 -0700)] 
bpo-27961: Remove leftovers from the times when long long wasn't required (GH-15388)

(cherry picked from commit a38e9d139929a227e3899fbb638bc46c6cc6d8ba)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
6 years agobpo-36311: Fixes decoding multibyte characters around chunk boundaries and improves...
Miss Islington (bot) [Wed, 21 Aug 2019 23:55:57 +0000 (16:55 -0700)] 
bpo-36311: Fixes decoding multibyte characters around chunk boundaries and improves decoding performance (GH-15083)

(cherry picked from commit 7ebdda0dbee7df6f0c945a7e1e623e47676e112d)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agobpo-37482: Fix email address name with encoded words and special chars (GH-14561)
Miss Islington (bot) [Wed, 21 Aug 2019 23:21:48 +0000 (16:21 -0700)] 
bpo-37482: Fix email address name with encoded words and special chars (GH-14561)

Special characters in email address header display names are normally
put within double quotes. However, encoded words (=?charset?x?...?=) are
not allowed withing double quotes. When the header contains a word with
special characters and another word that must be encoded, the first one
must also be encoded.

In the next example, the display name in the From header is quoted and
therefore the comma is allowed; in the To header, the comma is not
within quotes and not encoded, which is not allowed and therefore
rejected by some mail servers.

From: "Foo Bar, France" <foo@example.com>
To: Foo Bar, =?utf-8?q?Espa=C3=B1a?= <foo@example.com>

https://bugs.python.org/issue37482
(cherry picked from commit df0c21ff46c5c37b6913828ef8c7651f523432f8)

Co-authored-by: bsiem <52461103+bsiem@users.noreply.github.com>
6 years agoUpdate asyncio.ensure_future() documentation (GH-15347) (GH-15361)
Miss Islington (bot) [Wed, 21 Aug 2019 17:01:53 +0000 (10:01 -0700)] 
Update asyncio.ensure_future() documentation (GH-15347) (GH-15361)

Added back mention that ensure_future actually scheduled obj. This documentation just mentions what ensure_future returns, so I did not realize that ensure_future also schedules obj.
(cherry picked from commit 092911d5c0d8f6db8a0cb02fecd73dbb650f9e2e)

Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
6 years agobpo-37823: Fix open() link in telnetlib doc (GH-15281)
Miss Islington (bot) [Wed, 21 Aug 2019 11:38:25 +0000 (04:38 -0700)] 
bpo-37823: Fix open() link in telnetlib doc (GH-15281)

Fixed wrong link to Telnet.open() method in telnetlib documentation.
(cherry picked from commit e0b6117e2723327d6741d0aa599408514add5b30)

Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
6 years agobpo-35518: Skip test that relies on a deceased network service. (GH-15349)
Miss Islington (bot) [Wed, 21 Aug 2019 04:11:25 +0000 (21:11 -0700)] 
bpo-35518: Skip test that relies on a deceased network service. (GH-15349)

If this service had thoroughly vanished, we could just ignore the
test until someone gets around to either recreating such a service
or redesigning the test to somehow work locally.  The
`support.transient_internet` mechanism catches the failure to
resolve the domain name, and skips the test.

But in fact the domain snakebite.net does still exist, as do its
nameservers -- and they can be quite slow to reply.  As a result
this test can easily take 20-30s before it gets auto-skipped.

So, skip the test explicitly up front.
(cherry picked from commit 5b95a1507e349da5adae6d2ab57deac3bdd12f15)

Co-authored-by: Greg Price <gnprice@gmail.com>
6 years agobpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343)
Victor Stinner [Tue, 20 Aug 2019 14:29:08 +0000 (15:29 +0100)] 
bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333) (GH-15342) (GH-15343)

pymalloc_alloc() now returns directly the pointer, return NULL on
memory allocation error.

allocate_from_new_pool() already uses NULL as marker for "allocation
failed".

(cherry picked from commit 18f8dcfa10d8a858b152d12a9ad8fa83b7e967f0)
(cherry picked from commit 30e5aff5fb0e3841107ddd4539a1f5b8521c80fb)

6 years agobpo-37868: Improve is_dataclass for instances. (GH-15325)
Miss Islington (bot) [Tue, 20 Aug 2019 06:01:55 +0000 (23:01 -0700)] 
bpo-37868: Improve is_dataclass for instances. (GH-15325)

(cherry picked from commit b0f4dab8735f692bcfedcf0fa9a25e238a554bab)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-36502: Correct documentation of str.isspace() (GH-15019) (GH-15296)
Miss Islington (bot) [Mon, 19 Aug 2019 10:10:14 +0000 (03:10 -0700)] 
bpo-36502: Correct documentation of str.isspace() (GH-15019) (GH-15296)

The documented definition was much broader than the real one:
there are tons of characters with general category "Other",
and we don't (and shouldn't) treat most of them as whitespace.

Rewrite the definition to agree with the comment on
_PyUnicode_IsWhitespace, and with the logic in makeunicodedata.py,
which is what generates that function and so ultimately governs.

Add suitable breadcrumbs so that a reader who wants to pin down
exactly what this definition means (what's a "bidirectional class"
of "B"?) can do so.  The `unicodedata` module documentation is an
appropriate central place for our references to Unicode's own copious
documentation, so point there.

Also add to the isspace() test a thorough check that the
implementation agrees with the intended definition.
(cherry picked from commit 8c1c426a631ba02357112657193f82c58d3e08b4)

Co-authored-by: Greg Price <gnprice@gmail.com>
6 years agofix link to time function from time_ns doc (GH-15285)
Miss Islington (bot) [Sat, 17 Aug 2019 20:51:11 +0000 (13:51 -0700)] 
fix link to time function from time_ns doc (GH-15285)

Because mod, func, class, etc all share one namespace, :func:time creates a link to the time module doc page rather than the time.time function.
(cherry picked from commit 1b1d0514adbcdd859817c63d1410455c64660d78)

Co-authored-by: Éric Araujo <merwok@netwok.org>
6 years agobpo-37642: Update acceptable offsets in timezone (GH-14878) (#15226)
Paul Ganssle [Thu, 15 Aug 2019 19:09:37 +0000 (15:09 -0400)] 
bpo-37642: Update acceptable offsets in timezone (GH-14878) (#15226)

This fixes an inconsistency between the Python and C implementations of
the datetime module. The pure python version of the code was not
accepting offsets greater than 23:59 but less than 24:00. This is an
accidental legacy of the original implementation, which was put in place
before tzinfo allowed sub-minute time zone offsets.

GH-14878

(cherry picked from commit 92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d)

6 years agoIndent code inside if block. (GH-15284)
Miss Islington (bot) [Thu, 15 Aug 2019 16:46:47 +0000 (09:46 -0700)] 
Indent code inside if block. (GH-15284)

Without indendation, seems like strcpy line is parallel to `if` condition.
(cherry picked from commit 69f37bcb28d7cd78255828029f895958b5baf6ff)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
6 years agoReplace usage of the obscure PEM_read_bio_X509_AUX with the more standard PEM_read_bi...
Miss Islington (bot) [Thu, 15 Aug 2019 12:55:59 +0000 (05:55 -0700)] 
Replace usage of the obscure PEM_read_bio_X509_AUX with the more standard PEM_read_bio_X509 (GH-15303)

X509_AUX is an odd, note widely used, OpenSSL extension to the X509 file format. This function doesn't actually use any of the extra metadata that it parses, so just use the standard API.

Automerge-Triggered-By: @tiran
(cherry picked from commit 40dad9545aad4ede89abbab1c1beef5303d9573e)

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
6 years agobpo-21131: Fix faulthandler.register(chain=True) stack (GH-15276)
Miss Islington (bot) [Wed, 14 Aug 2019 22:09:39 +0000 (15:09 -0700)] 
bpo-21131: Fix faulthandler.register(chain=True) stack (GH-15276)

faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes,
instead of just SIGSTKSZ bytes. Calling the previous signal handler
in faulthandler signal handler uses more than SIGSTKSZ bytes of stack
memory on some platforms.
(cherry picked from commit ac827edc493d3ac3f5b9b0cc353df1d4b418a9aa)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-37811: FreeBSD, OSX: fix poll(2) usage in sockets module (GH-15202)
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>
6 years agobpo-37849: IDLE: fix completion window positioning above line (GH-15267)
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>
6 years ago[3.7] bpo-37531: Fix regrtest timeout for subprocesses (GH-15072) (GH-15280)
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.

6 years agobpo-37256: Wording in Request class docs (GH-14792)
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>
6 years agobpo-37738: Fix curses addch(str, color_pair) (GH-15071) (GH-15273)
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)

6 years agobpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)
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>
6 years agobpo-37583: Add err 113 to support.get_socket_conn_refused_errs() (GH-15259)
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.

6 years ago[3.7] bpo-37814: Document the empty tuple type annotation syntax (GH-15208) (GH-15262)
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
6 years agoFix docs for assert_called and assert_called_once (GH-15218)
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>
6 years agobpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044)
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>
6 years agobpo-34155: Dont parse domains containing @ (GH-13079)
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>
6 years agobpo-37004: Documented asymmetry of string arguments in difflib.SequenceMatcher for...
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>
6 years agoImprove signal documentation (GH-14274)
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>
6 years agobpo-36419: IDLE - Refactor autocompete and improve testing. (GH-15121)
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>
6 years agobpo-37748: Re-order the Run menu. (GH-15115)
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>
6 years ago[3.7] bpo-34621: backwards-compatible pickle UUID with is_safe=unknown (GH-14834)
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.

6 years agobpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
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>
6 years ago[3.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs...
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>
6 years ago[3.7] bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. ...
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)

6 years agoCorrect description of HTTP status code 308. (GH-15097)
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>
6 years agobpo-30974: Change os.path.samefile docstring to match docs (GH-7337)
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>
6 years agobpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)
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>
6 years agobpo-37726: Prefer argparse over getopt in stdlib tutorial (GH-15052) (#15069)
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>
6 years agobpo-37695: Correct unget_wch error message. (GH-14986) 15066/head
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>
6 years agobpo-37723: Fix performance regression on regular expression parsing. (GH-15030)
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>
6 years agobpo-34101: Add doc of PyBuffer_GetPointer (GH-14994) (GH-15055)
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>
6 years agobpo-33821: Update IDLE section of What's New 3.7 (GH-15036)
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>
6 years agobpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)
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>
6 years agoFix idlelib typos discovered by min ho, pr 15018. (GH-15029)
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>
6 years agobpo-34162: Update idlelib/news.txt for 3.7.5 (GH-15016)
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)

6 years agobpo-34162: Update idlelib/news.txt. (GH-15011)
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>
6 years agobpo-37706: Disable 3 IDLE scrollbar tests on Mac. (GH-15010)
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>
6 years agobpo-37692: Improve highlight config sample (GH-14983)
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>
6 years agobpo-37628: Fix IDLE config sample sizes (GH-14958)
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>
6 years agobpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)
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>
6 years agobpo-32910: Remove implementation detail in venv documentation. (GH-14968)
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>
6 years agobpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-14934)
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>
6 years agobpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
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>
6 years agocloses bpo-37675: Use pkgutil.iter_modules to find fixers in a package rather than...
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>
6 years ago[3.7] Touch up venv docs (GH-14922) (GH-14924)
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
6 years agobpo-29446: IDLE -- add explicit imports (GH-14919) (#14921)
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>
6 years ago[3.7] bpo-17535: IDLE editor line numbers (GH-14030) 14918/head
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)

6 years agobpo-33610: validate non-negative integer inputs in IDLE's config (GH-14822)
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>
6 years ago[3.7] Fix typos in docs, comments and test assert messages (GH-14872). (#14901)
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>
6 years agoUpdate logging cookbook to show multiple worker processes using the concurrent.future...
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)