]> granicus.if.org Git - python/log
python
6 years agobpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937)
Victor Stinner [Tue, 26 Jun 2018 22:44:43 +0000 (00:44 +0200)]
bpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937)

* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)

* Enhance also format_duration(): work on integers and rounds towards
  +infinity (math.ceil).
* Write unit tests on format_duration()

(cherry picked from commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22)

* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)

regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit cac4fef8860e66a9da67d09762f5b614b9471a12)

* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)

Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.

Add check for invalid --huntrleaks/-R parameters.

(cherry picked from commit 58ed7307ea0b5c5aa052291ebc3030f314f938d8)
(cherry picked from commit d1f9481b7a2d31c40fca1347ef99d819eb656ce7)

6 years agobpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)
Miss Islington (bot) [Tue, 26 Jun 2018 01:42:09 +0000 (18:42 -0700)]
bpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)

These should have been included in PR 7836.
(cherry picked from commit 42397731d7ba8bdf63025d48008d133cb2070229)

Co-authored-by: Mark Roseman <mark@markroseman.com>
6 years ago[3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587...
Miss Islington (bot) [Mon, 25 Jun 2018 11:27:01 +0000 (04:27 -0700)]
[3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7907)

(cherry picked from commit fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5)

6 years agobpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904)
Miss Islington (bot) [Mon, 25 Jun 2018 10:44:16 +0000 (03:44 -0700)]
bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904)

(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7899)
Miss Islington (bot) [Mon, 25 Jun 2018 06:31:24 +0000 (23:31 -0700)]
bpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7899)

Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.

(cherry picked from commit a8ddf85a84364d2c660e6670a7e06621993d1fdc)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)
Miss Islington (bot) [Sun, 24 Jun 2018 21:06:30 +0000 (14:06 -0700)]
bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)

This avoids a failure in at least one case when running only a single
test method rather than all tests in the module.

The issue came up when testing the following on Windows 10 Pro 64-bit:
HighPageTest.test_highlight_target_text_mouse
(cherry picked from commit 2af9f5d334eeca588eeee87d177faf0012c63a03)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years ago[3.6] Enable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)
Zachary Ware [Sun, 24 Jun 2018 15:53:42 +0000 (10:53 -0500)]
[3.6] Enable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)

(cherry picked from commit 3f197f94d67be25d5489e14f2f06b4a00e818747)

6 years agobpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)
Miss Islington (bot) [Sun, 24 Jun 2018 03:41:40 +0000 (20:41 -0700)]
bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)

Directly executed pyc files were being kept open longer than necessary.
(cherry picked from commit ea737751b10fff752aafed0231e8a02b82ba365d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)
Miss Islington (bot) [Sat, 23 Jun 2018 21:58:41 +0000 (14:58 -0700)]
bpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)

In configdialog, the custom tabbedpages widget was replaced
by ttk.notebook several months ago.
(cherry picked from commit 5ae70f66ff1949eec35ff207c97cfe572c4e74c8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33887: Add TOC to Design and History FAQ(GH-7766)
Miss Islington (bot) [Sat, 23 Jun 2018 18:48:28 +0000 (11:48 -0700)]
bpo-33887: Add TOC to Design and History FAQ(GH-7766)

(cherry picked from commit 38cf49bf695903ac7a8516bca6bbb6b32d935bb5)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872)
Victor Stinner [Sat, 23 Jun 2018 13:06:11 +0000 (15:06 +0200)]
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872)

bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.

(cherry picked from commit 9b7cf757213cf4d7ae1d436d86ad53f5ba362d55)

6 years agobpo-33877: Remove UNIX qualification for running complete programs (GH-7744)
Miss Islington (bot) [Fri, 22 Jun 2018 21:54:26 +0000 (14:54 -0700)]
bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)

The statement is true for Windows (and macOS) also.
(cherry picked from commit c9d43c702a53804c23ecb22a0dbf6a47c804d2b1)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33885: Replace "hook function" with "callable" (GH-7765)
Andrés Delfino [Fri, 22 Jun 2018 21:10:23 +0000 (18:10 -0300)]
bpo-33885: Replace "hook function" with "callable" (GH-7765)

6 years agobpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7826)
Victor Stinner [Fri, 22 Jun 2018 07:10:42 +0000 (09:10 +0200)]
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7826)

Add -g to LDFLAGS when compiling with LTO to get debug symbols.

6 years agobpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
Miss Islington (bot) [Fri, 22 Jun 2018 02:49:06 +0000 (19:49 -0700)]
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)

Increases coverage by 44%.
(cherry picked from commit bcd3a1a18d841338f57c39f6a7de8cf14d0c3e03)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33894: Clarified the tempfile.tempdir documentation (GH-7829) (GH-7842)
Miss Islington (bot) [Thu, 21 Jun 2018 08:05:07 +0000 (01:05 -0700)]
bpo-33894: Clarified the tempfile.tempdir documentation (GH-7829) (GH-7842)

(cherry picked from commit 940ae608566fd4446ff92a22705f646cde1d087c)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
6 years agobpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
Miss Islington (bot) [Thu, 21 Jun 2018 04:40:57 +0000 (21:40 -0700)]
bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)

Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
(cherry picked from commit 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33906: Rename idlelib.windows as window (GH-7833)
Miss Islington (bot) [Thu, 21 Jun 2018 01:52:20 +0000 (18:52 -0700)]
bpo-33906: Rename idlelib.windows as window (GH-7833)

Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.
(cherry picked from commit a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
Miss Islington (bot) [Wed, 20 Jun 2018 21:33:14 +0000 (14:33 -0700)]
bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)

The revised file compiles, runs, and tests OK. idle_test/README.txt
explains how to use it to create new IDLE test files.
(cherry picked from commit 87a927325e3856621790a39d8718ff24a19510aa)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
Miss Islington (bot) [Wed, 20 Jun 2018 15:56:45 +0000 (08:56 -0700)]
bpo-33904:  In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)

(cherry picked from commit 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
6 years agobpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
Miss Islington (bot) [Wed, 20 Jun 2018 09:54:32 +0000 (02:54 -0700)]
bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)

Only make sure that the result is in unittest.signals._results, don't
check the full content of unittest.signals._results.

support._run_suite() uses TextTestRunner in verbose mode, but
TextTestRunner.run() calls registerResult(result) which made the test
fail with "odd object in result set".

Call also removeResult() to restore unittest.signals._results to
avoid test side effect.
(cherry picked from commit fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33907: Rename an IDLE module and classes. (GH-7810)
Miss Islington (bot) [Wed, 20 Jun 2018 06:40:30 +0000 (23:40 -0700)]
bpo-33907: Rename an IDLE module and classes. (GH-7810)

Fix-up class name duplication in PR GH-7807. Combined effect is that
module calltips and its class CallTips are now calltip and Calltip.
In module calltip_w class CallTip is now CalltipWindow.
(cherry picked from commit 9af1836664d241fec6e62955ffaa559b3a2eaf1b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago [3.6] bpo-33907: Rename an IDLE module and class. (GH-7807) (GH-7809)
Terry Jan Reedy [Wed, 20 Jun 2018 04:22:48 +0000 (00:22 -0400)]
 [3.6] bpo-33907: Rename an IDLE module and class. (GH-7807)  (GH-7809)

Improve consistency and appearance. Module idlelib.calltips is now calltip.
Class idlelib.calltip_w.CallTip is now Calltip.
(cherry picked from commit 06e2029dfa500a42e3565ed7ba8573412f153d1c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33855: Still more edits and minimal tests for IDLE (GH-7784)
Miss Islington (bot) [Wed, 20 Jun 2018 00:11:49 +0000 (17:11 -0700)]
bpo-33855: Still more edits and minimal tests for IDLE  (GH-7784)

Part 3 of 3, continuing PR GH-7689. This covers 14 idlelib modules and their tests,
rpc to zoomheight except for run (already done) and tooltip (being done separately).
(cherry picked from commit 4d92158f4c3917fc4fbfebff15224e74782abf79)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH...
Miss Islington (bot) [Tue, 19 Jun 2018 18:02:43 +0000 (11:02 -0700)]
bpo-33717: set terse to True when calling platform.platform in test.pythoninfo (GH-7797) (GH-7802)

(cherry picked from commit 71ca738f4cd2696d056d0cdb83bebd576f98ccc2)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
6 years agobpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798)
Miss Islington (bot) [Tue, 19 Jun 2018 16:45:39 +0000 (09:45 -0700)]
bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798)

Fix test_dbm_gnu.test_reorganize() on macOS with gdbm 1.15: add a
larger value to make sure that the file size changes.
(cherry picked from commit 13c79c677f9ec9437c82eda72fa1c2d288d8fceb)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33365: print the header values beside the keys (GH-6611)
Miss Islington (bot) [Tue, 19 Jun 2018 13:52:44 +0000 (06:52 -0700)]
bpo-33365: print the header values beside the keys (GH-6611)

with debuglevel=1 only the header keys got printed. With
this change the header values get printed as well and the single
header entries get '\n' as a separator.
(cherry picked from commit 936f03e7fafc28fd6fdfba11d162c776b89c0167)

Co-authored-by: Marco Strigl <mstrigl@suse.com>
6 years agobpo-33663: Convert content length to string before putting to header (GH-7754)
Miss Islington (bot) [Mon, 18 Jun 2018 21:41:08 +0000 (14:41 -0700)]
bpo-33663: Convert content length to string before putting to header (GH-7754)

(cherry picked from commit b36b0a3765bcacb4dcdbf12060e9e99711855da8)

Co-authored-by: ValeriyaSinevich <valeriya.sinevich@phystech.edu>
6 years agoAdd missing va_end() calls in PC/launcher.c (GH-7690)
Miss Islington (bot) [Mon, 18 Jun 2018 15:56:45 +0000 (08:56 -0700)]
Add missing va_end() calls in PC/launcher.c (GH-7690)

(cherry picked from commit 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-33855: More edits and new minimal tests for IDLE (GH-7761)
Miss Islington (bot) [Mon, 18 Jun 2018 09:11:12 +0000 (02:11 -0700)]
bpo-33855: More edits and new minimal tests for IDLE (GH-7761)

Part 2 of 3.  Continues PR GH-7689, changeset ee5ef30.
Edit and add tests for 18 modules, help_about to replace and run.
(cherry picked from commit ea3dc8029ab6a0f1ee6a8a72f1612dea74892e08)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33892: Doc: Use gender neutral words (GH-7770)
Miss Islington (bot) [Mon, 18 Jun 2018 04:54:51 +0000 (21:54 -0700)]
bpo-33892: Doc: Use gender neutral words (GH-7770)

(cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
Miss Islington (bot) [Sat, 16 Jun 2018 21:44:01 +0000 (14:44 -0700)]
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)

Make it the same as when one runs 'python'.
(cherry picked from commit 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
6 years ago[3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734)
Terry Jan Reedy [Sat, 16 Jun 2018 16:49:10 +0000 (12:49 -0400)]
[3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734)

Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es).  Add a test file for all non-startup IDLE modules.  Edit existing files and update coverage.  This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files..
(cherry picked from commit ee5ef309c7e2daef1248730145408f700732c42e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33861: Minor improvements of tests for os.path. (GH-7715)
Miss Islington (bot) [Sat, 16 Jun 2018 10:58:10 +0000 (03:58 -0700)]
bpo-33861: Minor improvements of tests for os.path. (GH-7715)

* Test exists(), lexists(), isdir(), isfile(), islink(), ismount()
  with bytes paths.
* Remove unneeded silencing DeprecationWarning for ismount() with
  bytes path.
* Test common functions with unencodable and undecodable paths.
* Minor clean up and refactoring.
(cherry picked from commit 17a0088e2680e12ce2c5f2ffc6b71766299e38d5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-33859: Fix spelling mistakes in docs. (GH-7691). (GH-7750)
Xtreak [Sat, 16 Jun 2018 06:33:16 +0000 (12:03 +0530)]
[3.6] bpo-33859: Fix spelling mistakes in docs. (GH-7691). (GH-7750)

(cherry picked from commit c151f7846d6d900c22edaaa77f5f7771b529099e)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
6 years agobpo-33571: Improve the glossary description for '...' prompt (GH-6971)
Miss Islington (bot) [Sat, 16 Jun 2018 04:08:22 +0000 (21:08 -0700)]
bpo-33571: Improve the glossary description for '...' prompt (GH-6971)

Mention that it can be triggered by triple quotes and after specifying decorators.
(cherry picked from commit 68680035143a3a6398faa88f067f244c74691d19)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687)
Miss Islington (bot) [Sat, 16 Jun 2018 03:50:28 +0000 (20:50 -0700)]
bpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687)

Update the the signature in the code example to make `_cache` a keyword-only parameter.
(cherry picked from commit 2707e41a5c7ede30349cc7dbd66f8be564965d7c)

Co-authored-by: Noah Haasis <haasis_noah@yahoo.de>
6 years agoImprove the grammar in the glossary item for `list` (GH-7727)
Miss Islington (bot) [Sat, 16 Jun 2018 03:05:21 +0000 (20:05 -0700)]
Improve the grammar in the glossary item for `list` (GH-7727)

" ... access to elements is O(1)."

(cherry picked from commit 7469ff5017ec315a81e35913f19a32f0dbdf712e)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agoRevert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection...
Victor Stinner [Fri, 15 Jun 2018 21:37:29 +0000 (23:37 +0200)]
Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)" (#7725)

This reverts commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287.

6 years agodoc: Fix small typos in library/multiprocessing (GH-698) (GH-7721)
Miss Islington (bot) [Fri, 15 Jun 2018 20:27:48 +0000 (13:27 -0700)]
doc: Fix small typos in library/multiprocessing (GH-698) (GH-7721)

(cherry picked from commit 5619ab2db3a6c62ffaa55e8826cf67b7459fc484)

Co-authored-by: Sylvain Bellemare <sbellem@gmail.com>
6 years agobpo-33854: Add PEP 461 title to 'See also' note (GH-7688) (GH-7720)
Miss Islington (bot) [Fri, 15 Jun 2018 20:14:53 +0000 (13:14 -0700)]
bpo-33854: Add PEP 461 title to 'See also' note (GH-7688) (GH-7720)

(cherry picked from commit a9d0b34a5c5d4fdc12bba4f9c1e314e6e132cc65)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33847: Add '@' operator entry to index (GH-7669)
Miss Islington (bot) [Fri, 15 Jun 2018 19:45:19 +0000 (12:45 -0700)]
bpo-33847: Add '@' operator entry to index (GH-7669)

(cherry picked from commit 695118600fecaa7b95634e168ad7cbbc561fd1ec)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
Miss Islington (bot) [Fri, 15 Jun 2018 18:48:22 +0000 (11:48 -0700)]
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)

'expresson list' refers to the grammar term 'expression_list' in the subscription production.
(cherry picked from commit 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) (GH-7711)
Victor Stinner [Fri, 15 Jun 2018 17:44:00 +0000 (19:44 +0200)]
bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) (GH-7711)

* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)

python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.

(cherry picked from commit 019d33b7a447e78057842332fb5d3bad01922122)

* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)

python-gdb now catchs UnicodeDecodeError exceptions when calling
string().

(cherry picked from commit d22fc0bc7de7882da204abe50884bbde2da4f9e7)

* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)

When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.

(cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287)

(cherry picked from commit ca4cb8492c643d1fcac2c5b749595ad5377673ab)

6 years agogitattribute: Mark generated files (GH-7619)
Miss Islington (bot) [Fri, 15 Jun 2018 16:08:18 +0000 (09:08 -0700)]
gitattribute: Mark generated files (GH-7619)

Marked files are collapsed by default in Github pull request.
https://github.com/github/linguistGH-generated-code
(cherry picked from commit c1897eda3d47b182977459a1e9fed4b3854a10a0)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)
Miss Islington (bot) [Fri, 15 Jun 2018 12:32:50 +0000 (05:32 -0700)]
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)

Hangul composition check boundaries are wrong for the second character
([0x1161, 0x1176) instead of [0x1161, 0x1176]) and third character ((0x11A7, 0x11C3)
instead of [0x11A7, 0x11C3]).
(cherry picked from commit d134809cd3764c6a634eab7bb8995e3e2eff14d5)

Co-authored-by: Wonsup Yoon <pusnow@me.com>
6 years ago[3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629)
Victor Stinner [Wed, 13 Jun 2018 10:05:15 +0000 (12:05 +0200)]
[3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629)

Backport note: don't add new is_reading() method from master to 3.6.

(cherry picked from commit d757aaf9dd767d13205bf9917e520ebf43e7f6e5)

6 years agobpo-31378: Document sqlite3.OperationalError exception (GH-7677)
Miss Islington (bot) [Wed, 13 Jun 2018 09:30:09 +0000 (02:30 -0700)]
bpo-31378: Document sqlite3.OperationalError exception (GH-7677)

(cherry picked from commit 71ede00f140fa6b67a8ac17df68b80079efa8dc2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668)
Miss Islington (bot) [Wed, 13 Jun 2018 02:11:25 +0000 (19:11 -0700)]
bpo-33828: Add missing versionchanged note for string.Formatter. (GH-7668)

string.Formatter auto-numbering feature was added in 3.4 and there
is no versionchanged note in its documentation, making the documentation
ambiguous about which version the feature is available.
(cherry picked from commit b9d8ad5130e0f77be28a3dec6d468e6470835573)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
6 years agobpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583...
Miss Islington (bot) [Tue, 12 Jun 2018 13:46:26 +0000 (06:46 -0700)]
bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583) (GH-7665)

When attempting to base64-decode a payload of invalid length (1 mod 4),
properly recognize and handle it.  The given data will be returned as-is,
i.e. not decoded, along with a new defect, InvalidBase64LengthDefect.
(cherry picked from commit c3f55be7dd012b7e92901627d0b31c21e983ccb4)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agopost 3.6.6rc1
Ned Deily [Tue, 12 Jun 2018 07:18:59 +0000 (03:18 -0400)]
post 3.6.6rc1

6 years ago3.6.6rc1 v3.6.6rc1
Ned Deily [Tue, 12 Jun 2018 04:24:03 +0000 (00:24 -0400)]
3.6.6rc1

6 years agobpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7652)
Ned Deily [Tue, 12 Jun 2018 01:44:58 +0000 (21:44 -0400)]
bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7652)

The documentation for CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED were
misleading and partly wrong. It fails to explain that OpenSSL behaves
differently in client and server mode. Also OpenSSL does validate the
cert chain everytime. With SSL_VERIFY_NONE a validation error is not
fatal in client mode and does not request a client cert in server mode.
Also discourage people from using CERT_OPTIONAL in client mode.

6 years agobpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646)
Miss Islington (bot) [Mon, 11 Jun 2018 21:19:23 +0000 (14:19 -0700)]
bpo-33656: Mention color in idlelib/NEWS.txt entry. (GH-7646)

(cherry picked from commit 4b704f29f5a0b6f6d7bd67468ed004bd3a96855d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33656: Add enum name for argument of Windows call. (GH-7642)
Miss Islington (bot) [Mon, 11 Jun 2018 20:08:24 +0000 (13:08 -0700)]
bpo-33656: Add enum name for argument of Windows call. (GH-7642)

Change suggested by Eryk Sun in a comment on PR 7137 after it was merged.
(cherry picked from commit fd88f319a4f40682b989b63f0b6378d69465fda4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)
Miss Islington (bot) [Mon, 11 Jun 2018 18:39:43 +0000 (11:39 -0700)]
bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)

On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary
unchanged, and a monitor resolution greater than 96 DPI, this should
make text and lines sharper. It should otherwise have no effect.

Using a magnifier, I determined that the improvement comes from horizontal and
lines being better lined up with the monitor pixels. I checked that this call causes
no problem on any Windows buildbot, including the Win7 buildbots. Unlike most
IDLE patches, this one can be easily reverted by users by removing a few lines,
at the top of idlelib/pyshell.py.
(cherry picked from commit 800415e3df69f494afe9f95a8563ce17609fe1da)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33831: Make htmlview run again (GH-7628)
Miss Islington (bot) [Mon, 11 Jun 2018 17:20:05 +0000 (10:20 -0700)]
bpo-33831: Make htmlview run again (GH-7628)

(cherry picked from commit 0e5f901508dea6437dc9ee89b434feca721d45be)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631...
Miss Islington (bot) [Mon, 11 Jun 2018 16:11:52 +0000 (09:11 -0700)]
bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7634)

The docs claimed that a list of EmailMessage objects could be
passed to set_content(), but this was never implemented.
(cherry picked from commit 2c071cebe67f517f191f4074757a79b0f597d886)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7622)
Ned Deily [Mon, 11 Jun 2018 08:33:26 +0000 (04:33 -0400)]
bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7622)

6 years agomore pypi.python.org -> pypi.org for 3.6 (GH-7616)
Ned Deily [Mon, 11 Jun 2018 05:29:28 +0000 (01:29 -0400)]
more pypi.python.org -> pypi.org for 3.6 (GH-7616)

6 years agopypi.python.org -> pypi.org (GH-7613) (GH-7615)
Miss Islington (bot) [Mon, 11 Jun 2018 05:07:49 +0000 (22:07 -0700)]
pypi.python.org -> pypi.org (GH-7613) (GH-7615)

(cherry picked from commit 9d6d06e8065d45f375f4a80e2d7e13b032da1f5b)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7607)
Miss Islington (bot) [Mon, 11 Jun 2018 01:23:41 +0000 (18:23 -0700)]
bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7607)

Before Python 3.6, os.path.abspath(None) used to report an AttributeError which was properly caught inside site.abs_paths, making it ignore __main__, one of sys.modules, which has __file__ and __cached__ set to None. With 3.6, os.path.abspath(None) raises TypeError instead which site.abs_path was not expecting.  This resulted in an uncaught exception if a user had PYTHONSTARTUP set and the application called site.main() which a number of third-party programs do.
(cherry picked from commit 2487f30d5529948ace26559e274d7cac6abcd1a8)

Co-authored-by: Steve Weber <steverweber@gmail.com>
6 years agobpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601)
Miss Islington (bot) [Sun, 10 Jun 2018 22:03:31 +0000 (15:03 -0700)]
bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601)

A datetime object d is aware if d.tzinfo is not None and
d.tzinfo.utcoffset(d) does  not return None. If d.tzinfo is None,
or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None,
 d is naive.

This commit ensures that instances with non-None d.tzinfo, but
d.tzinfo.utcoffset(d) returning None are treated as naive.

In addition, C acceleration code will raise TypeError if
d.tzinfo.utcoffset(d) returns an object with the type other than
timedelta.

* Updated the documentation.

Assume that the term "naive" is defined elsewhere and remove the
not entirely correct clarification.  Thanks, Tim.
(cherry picked from commit 877b23202b7e7d4f57b58504fd0eb886e8c0b377)

Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
6 years agobpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603)
Miss Islington (bot) [Sun, 10 Jun 2018 21:45:51 +0000 (14:45 -0700)]
bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603)

(cherry picked from commit 4ab4695388fb9ec03a14d93e90ce50d832a920ec)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-33610: Update IDLE Code Context doc entry (GH-7597)
Miss Islington (bot) [Sun, 10 Jun 2018 20:11:20 +0000 (13:11 -0700)]
bpo-33610: Update IDLE Code Context doc entry (GH-7597)

Users can now click on context lines.
(cherry picked from commit af4b0130d44bf8a1ff4f7b46195d1dc79add444a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33820: Fix IDLE What's New typo (GH-7594)
Miss Islington (bot) [Sun, 10 Jun 2018 19:34:08 +0000 (12:34 -0700)]
bpo-33820: Fix IDLE What's New typo (GH-7594)

(cherry picked from commit 820c53ac612e9c4b3cb3e831537a15d5e953bbc0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.6] Fix spaces added after hyphens in news entries. (GH-7579) (GH-7584)
Serhiy Storchaka [Sun, 10 Jun 2018 18:54:07 +0000 (21:54 +0300)]
[3.6] Fix spaces added after hyphens in news entries. (GH-7579) (GH-7584)

Seems they were added by double applying blurb.
(cherry picked from commit 98a0e466cd94d4635769cfdfd397c43c07384595)

6 years agobpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)
Miss Islington (bot) [Sun, 10 Jun 2018 18:30:44 +0000 (11:30 -0700)]
bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)

(cherry picked from commit e226eb71575ad22a6779b02941377665831cfff2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoRemove hyphens from phrase "picks up where it left off" (GH-7410)
Miss Islington (bot) [Sun, 10 Jun 2018 02:04:32 +0000 (19:04 -0700)]
Remove hyphens from phrase "picks up where it left off" (GH-7410)

(cherry picked from commit d689f976199d2e211a97d526b57cfa9871cc578d)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agoFix typo in object.__getnewargs__() documentation (GH-7554)
Miss Islington (bot) [Sun, 10 Jun 2018 01:00:47 +0000 (18:00 -0700)]
Fix typo in object.__getnewargs__() documentation (GH-7554)

(cherry picked from commit 0e0534c4024c181aa47a300142c59eeeee71db46)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33766: Document that end of file or string is a newline (GH-7383)
Miss Islington (bot) [Sun, 10 Jun 2018 00:12:24 +0000 (17:12 -0700)]
bpo-33766: Document that end of file or string is a newline (GH-7383)

(cherry picked from commit 0aa17ee6a76df0946d42e7657a501f1862065a22)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
6 years agobpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)
Miss Islington (bot) [Sat, 9 Jun 2018 16:35:37 +0000 (09:35 -0700)]
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)

If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.

Add also test_regrtest.test_rerun_fail() test.
(cherry picked from commit c45fc7673e23f911639d10d3771ffef7be870c7a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoDocs: fix some wrong words (GH-6987)
Mariatta [Sat, 9 Jun 2018 00:17:32 +0000 (17:17 -0700)]
Docs: fix some wrong words (GH-6987)

Fix typos in code comments: bdb.py and configure.ac..
(cherry picked from commit b5c246f833d95991fed728c3845176dd661cd5ea)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
6 years agobpo-30805: Avoid race condition with debug logging (GH-7545)
Miss Islington (bot) [Fri, 8 Jun 2018 22:47:45 +0000 (15:47 -0700)]
bpo-30805: Avoid race condition with debug logging (GH-7545)

Supersedes https://github.com/python/cpython/pull/2490
(cherry picked from commit 12f482e0ae33021c04264294f33fa6baa9617cec)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
Miss Islington (bot) [Fri, 8 Jun 2018 11:05:58 +0000 (04:05 -0700)]
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)

- bugfix and test for fragile metavar handling in argparse (see
  bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
6 years agobpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)
Miss Islington (bot) [Fri, 8 Jun 2018 10:22:39 +0000 (03:22 -0700)]
bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)

(cherry picked from commit 9ef1b0690b90c526798b6b3125b0fa7ae98319a2)

Co-authored-by: Mayank Singhal <17mayank.singhal@gmail.com>
6 years agoUpdate idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)
Miss Islington (bot) [Fri, 8 Jun 2018 06:50:15 +0000 (23:50 -0700)]
Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)

(cherry picked from commit b1f690294d9bf948d148df3ca0d20ca462d902b3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)
Miss Islington (bot) [Fri, 8 Jun 2018 05:50:58 +0000 (22:50 -0700)]
bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)

(cherry picked from commit 041272b657867f5bec925b19aabf23944125d49b)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467...
Yury Selivanov [Fri, 8 Jun 2018 03:42:13 +0000 (23:42 -0400)]
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (#7514)

6 years agobpo-33791: Update README for macOS users (GH-7471)
Miss Islington (bot) [Fri, 8 Jun 2018 02:52:49 +0000 (19:52 -0700)]
bpo-33791: Update README for macOS users (GH-7471)

(cherry picked from commit ee994d7443a7e2809a5d49bd3679fc9c451a411b)

Co-authored-by: atg7000 <38963069+atg7000@users.noreply.github.com>
6 years agobpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467...
Yury Selivanov [Fri, 8 Jun 2018 01:32:43 +0000 (21:32 -0400)]
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (GH-7507)

6 years agobpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)
Miss Islington (bot) [Thu, 7 Jun 2018 23:34:12 +0000 (16:34 -0700)]
bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)

(cherry picked from commit bed523ba03c4525c9c79a6df700284b6c43024b3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.6] bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
Berker Peksag [Thu, 7 Jun 2018 19:22:35 +0000 (22:22 +0300)]
[3.6] bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)

(cherry picked from commit af1ec97a6d1dde68b2dc0ee9b78965eb219061a8)

Conflicts:

Doc/library/subprocess.rst

6 years ago[3.6] bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462...
Victor Stinner [Thu, 7 Jun 2018 15:06:50 +0000 (17:06 +0200)]
[3.6] bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) (GH-7483)

* bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)

Fix "<CoroWrapper ...> was never yielded from" warning in
PyTask_PyFuture_Tests.test_error_in_call_soon() of
test_asyncio.test_tasks.

Close manually the coroutine on error.

(cherry picked from commit 9f04f0df6fdb27190690bda949d213893d14e807)

* Hide a warning in test_asyncio test_cancel_handshake()

SslProtoHandshakeTests.test_cancel_handshake() of
test_asyncio.test_sslproto: hide a traceback about SSL handshake
failure.

6 years agobpo-17909: Document that json.load can accept a binary IO (GH-7366)
Miss Islington (bot) [Thu, 7 Jun 2018 10:21:20 +0000 (03:21 -0700)]
bpo-17909: Document that json.load can accept a binary IO (GH-7366)

(cherry picked from commit bb6366bd7570ff3b74bc66095540bea78f31504e)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
6 years agobpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Miss Islington (bot) [Wed, 6 Jun 2018 16:09:18 +0000 (09:09 -0700)]
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)

Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit 492d6424a7ca907c8ec1df21e51062e8f3d88e32)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451)
Miss Islington (bot) [Wed, 6 Jun 2018 15:18:27 +0000 (08:18 -0700)]
bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451)

Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.

Document also (int)double rounding mode.
(cherry picked from commit 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoremove hg support from patchcheck (GH-7440)
Miss Islington (bot) [Wed, 6 Jun 2018 06:00:20 +0000 (23:00 -0700)]
remove hg support from patchcheck (GH-7440)

(cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
INADA Naoki [Wed, 6 Jun 2018 05:18:14 +0000 (14:18 +0900)]
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)

(cherry picked from commit e33648484775fa533fc8f1e5cc45f60061d29d54)

6 years agobpo-33751: Fix test_file. (GH-7378)
Miss Islington (bot) [Tue, 5 Jun 2018 17:51:02 +0000 (10:51 -0700)]
bpo-33751: Fix test_file. (GH-7378)

testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.

Also improve cleaning up after tests.
(cherry picked from commit c2745d2d05546d76f655ab450eb23d1af39e0b1c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)....
Serhiy Storchaka [Tue, 5 Jun 2018 16:53:03 +0000 (19:53 +0300)]
[3.6] bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377). (GH-7431)

(cherry picked from commit 5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288)

6 years agobpo-33752: Fix a file leak in test_dbm. (GH-7376)
Miss Islington (bot) [Tue, 5 Jun 2018 13:47:42 +0000 (06:47 -0700)]
bpo-33752: Fix a file leak in test_dbm. (GH-7376)

With addCleanup() f.close() was executed after tearDown().
(cherry picked from commit 6592d7fe11477f8f974d2d4a85c3382a1ad05217)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Miss Islington (bot) [Tue, 5 Jun 2018 13:25:21 +0000 (06:25 -0700)]
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoEnable the verbose build for extension modules with GNU make (GH-6659)
Miss Islington (bot) [Mon, 4 Jun 2018 17:37:04 +0000 (10:37 -0700)]
Enable the verbose build for extension modules with GNU make (GH-6659)

(cherry picked from commit 10f715d71218ece737f990fa55027b8e1120cc3a)

Co-authored-by: Matthias Klose <doko42@users.noreply.github.com>
6 years agobpo-27902: Add compatibility note to Profile docs (GH-7295)
Miss Islington (bot) [Mon, 4 Jun 2018 17:30:34 +0000 (10:30 -0700)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)

(cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230)

Co-authored-by: Tobias Kunze <r@rixx.de>
6 years agobpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)
Miss Islington (bot) [Mon, 4 Jun 2018 17:22:18 +0000 (10:22 -0700)]
bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)

(cherry picked from commit 13f51d9eec569e08475390e2a8f49f4afed1ea06)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
Miss Islington (bot) [Mon, 4 Jun 2018 17:18:22 +0000 (10:18 -0700)]
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)

The bytes parameter uses big endian.
(cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83)

Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
6 years agobpo-31849: Fix warning in pyhash.c (GH-6799)
Miss Islington (bot) [Mon, 4 Jun 2018 17:14:26 +0000 (10:14 -0700)]
bpo-31849: Fix warning in pyhash.c (GH-6799)

(cherry picked from commit a8eb58546b37a7cd5f332f019bb07388f5212c2d)

Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
6 years agobpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
Miss Islington (bot) [Mon, 4 Jun 2018 16:22:10 +0000 (09:22 -0700)]
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)

(cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33664: Scroll IDLE editor text by lines (GH-7351)
Miss Islington (bot) [Mon, 4 Jun 2018 16:13:43 +0000 (09:13 -0700)]
bpo-33664: Scroll IDLE editor text by lines (GH-7351)

Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>