]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 years agobpo-34324: Doc README wrong directory name for venv (GH-8650)
Miss Islington (bot) [Thu, 9 Aug 2018 15:10:27 +0000 (08:10 -0700)] 
bpo-34324: Doc README wrong directory name for venv (GH-8650)

In the documentation, the `env` directory is specified when we execute
the `make venv` command. But in the code, `make venv` will create the
virtualenv inside the `venv` directory (defined by `VENVDIR`)
(cherry picked from commit 599bfa18f8ebcb23af300b6855934048c3c64e7d)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years agoMake code examples in Functional Programming HOWTO to be PEP 8 compliant. (GH-8646)
Miss Islington (bot) [Tue, 7 Aug 2018 21:56:25 +0000 (14:56 -0700)] 
Make code examples in Functional Programming HOWTO to be PEP 8 compliant. (GH-8646)

(cherry picked from commit db8707c8ab57d9454c838586c08199c82a3d74d9)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
7 years agobpo-34335: Use async/await syntax in documentation examples (GH-8674)
Miss Islington (bot) [Tue, 7 Aug 2018 20:33:31 +0000 (13:33 -0700)] 
bpo-34335: Use async/await syntax in documentation examples (GH-8674)

(cherry picked from commit d2ac400267940f35d731d66c2dafafe099d770d9)

Co-authored-by: Mikhail Terekhov <termim@gmail.com>
7 years agoVSTS: Skip build steps when only docs have changed (GH-8546)
Miss Islington (bot) [Tue, 7 Aug 2018 15:18:03 +0000 (08:18 -0700)] 
VSTS: Skip build steps when only docs have changed (GH-8546)

(cherry picked from commit b221c93d4cf8fe9ecec429b08612abcc211a39a6)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
7 years agobpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)
Miss Islington (bot) [Tue, 7 Aug 2018 02:37:38 +0000 (19:37 -0700)] 
bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)

(cherry picked from commit e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agoFix HTML formatting in datamodel.rst (GH-8693)
Miss Islington (bot) [Mon, 6 Aug 2018 21:12:37 +0000 (14:12 -0700)] 
Fix HTML formatting in datamodel.rst (GH-8693)

(cherry picked from commit 3c1b590472d567e22a607ba31271865cd90c8e9b)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agobpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
Miss Islington (bot) [Mon, 6 Aug 2018 19:59:43 +0000 (12:59 -0700)] 
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)

Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
7 years agobpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)
Miss Islington (bot) [Mon, 6 Aug 2018 14:11:04 +0000 (07:11 -0700)] 
bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)

(cherry picked from commit 8f7bb100d0fa7fb2714f3953b5b627878277c7c6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673)
Miss Islington (bot) [Mon, 6 Aug 2018 12:47:36 +0000 (05:47 -0700)] 
bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673)

* bpo-34273: Change 'Fixed point' to 'Fixed-point notation'.
The change in the mini language floating point and decimal table
is consistent with 'Exponential notation' and clarifies that we
are referring to the output notation, not an object type.

* Update string.rst

* Update string.rst

* Update string.rst

* Update string.rst
(cherry picked from commit 28c7f8c8ce34a0cb848822a252a9d0a761fb42d5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-19891: Ignore error while writing history file (GH-8483)
Miss Islington (bot) [Mon, 6 Aug 2018 09:03:43 +0000 (02:03 -0700)] 
bpo-19891: Ignore error while writing history file (GH-8483)

(cherry picked from commit b2499669ef2e6dc9a2cdb49b4dc498e078167e26)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
7 years agobpo-34336: Don't promote possibility to leave out typing.Optional (GH-8677)
Miss Islington (bot) [Sun, 5 Aug 2018 17:36:04 +0000 (10:36 -0700)] 
bpo-34336: Don't promote possibility to leave out typing.Optional (GH-8677)

(cherry picked from commit 336c945858055059a65134d4c501a85037d70d99)

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
7 years ago[3.7] bpo-34247: Fix Python 3.7 initialization (#8659)
Victor Stinner [Sun, 5 Aug 2018 10:31:59 +0000 (12:31 +0200)] 
[3.7] bpo-34247: Fix Python 3.7 initialization (#8659)

* -X dev: it is now possible to override the memory allocator using
  PYTHONMALLOC even if the developer mode is enabled.
* Add _Py_InitializeFromConfig()
* Add _Py_Initialize_ReadEnvVars() to set global configuration
  variables from environment variables
* Fix the code to initialize Python: Py_Initialize() now also reads
  environment variables
* _Py_InitializeCore() can now be called twice: the second call
  only replaces the configuration.
* Write unit tests on Py_Initialize() and the different ways to
  configure Python
* The isolated mode now always sets Py_IgnoreEnvironmentFlag and
  Py_NoUserSiteDirectory to 1.
* pymain_read_conf() now saves/restores the configuration
  if the encoding changed

7 years agobpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
Miss Islington (bot) [Sun, 5 Aug 2018 06:47:28 +0000 (23:47 -0700)] 
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)

* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
(cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years agoFix reST markup in unittest documentation (GH-8665)
Miss Islington (bot) [Fri, 3 Aug 2018 22:13:52 +0000 (15:13 -0700)] 
Fix reST markup in unittest documentation (GH-8665)

(cherry picked from commit 2e5566d9e774dcde81e8139b486730917816e045)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agobpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)
Miss Islington (bot) [Fri, 3 Aug 2018 21:45:46 +0000 (14:45 -0700)] 
bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)

(cherry picked from commit 46dc4e34ed8005a688d7f3512844ef227a3465f4)

Co-authored-by: Stefan Otte <stefan.otte@gmail.com>
7 years agoFix docstring of Profiler class (GH-8651)
Miss Islington (bot) [Fri, 3 Aug 2018 09:30:49 +0000 (02:30 -0700)] 
Fix docstring of Profiler class (GH-8651)

(cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agoImprove the grammar in `range` documentation. (GH-8628)
Miss Islington (bot) [Fri, 3 Aug 2018 06:16:07 +0000 (23:16 -0700)] 
Improve the grammar in `range` documentation. (GH-8628)

Remove unnecessary "that" in the sentence.
(cherry picked from commit b6efc2cf9701adfb901eec2fe6a418893739877a)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)
Miss Islington (bot) [Fri, 3 Aug 2018 03:39:36 +0000 (20:39 -0700)] 
bpo-34275: Make IDLE calltips always visible on Mac.  (GH-8639)

Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.
(cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-34317: Fix a dead url to Windows documentation (GH-8622)
Miss Islington (bot) [Fri, 3 Aug 2018 03:29:39 +0000 (20:29 -0700)] 
bpo-34317: Fix a dead url to Windows documentation (GH-8622)

(cherry picked from commit 46ebe61c7f3511b97268b44d5373a9e9cf0b5cc7)

Co-authored-by: HiyashiChuka <41299525+hiyashichuka@users.noreply.github.com>
7 years agoUpdate list.remove(x) documentation (GH-8636)
Miss Islington (bot) [Fri, 3 Aug 2018 03:03:19 +0000 (20:03 -0700)] 
Update list.remove(x) documentation (GH-8636)

Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d971b66f529cbd450aca438275b868031605)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
7 years agobpo-30317: Fix multiprocessing test_timeout() (GH-8621)
Miss Islington (bot) [Fri, 3 Aug 2018 00:26:57 +0000 (17:26 -0700)] 
bpo-30317: Fix multiprocessing test_timeout() (GH-8621)

Multiprocessing test_timeout() now accepts a delta of 100 ms instead
of just 50 ms, since the test failed with 135.8 ms instead of the
expected 200 ms.
(cherry picked from commit 5640d030e100aade54210034828b711c3b506b18)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-27910: Update documentation of traceback module (GH-6116)
Miss Islington (bot) [Thu, 2 Aug 2018 16:51:48 +0000 (09:51 -0700)] 
bpo-27910: Update documentation of traceback module (GH-6116)

In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.

Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.

Co-authored-by: torsava <torsava@redhat.com>
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
(cherry picked from commit f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7)

7 years agobpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)
Miss Islington (bot) [Thu, 2 Aug 2018 07:52:22 +0000 (00:52 -0700)] 
bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)

(cherry picked from commit dd74369cb7b230b07ac3a031563406c8f2aae17f)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years agobpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Miss Islington (bot) [Thu, 2 Aug 2018 06:37:50 +0000 (23:37 -0700)] 
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)

Added missing .grab_release() calls to all places where we call .grab_set().
(cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years ago[3.7] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)...
Miss Islington (bot) [Tue, 31 Jul 2018 15:29:07 +0000 (08:29 -0700)] 
[3.7] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) (GH-8586)

7 years agobpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)
Miss Islington (bot) [Tue, 31 Jul 2018 09:20:06 +0000 (02:20 -0700)] 
bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)

* Fix integer overflow in os.readv(), os.writev(), os.preadv()
  and os.pwritev() and in os.sendfile() with headers or trailers
  arguments (on BSD-based OSes and MacOS).

* Fix sending the part of the file in os.sendfile() on MacOS.
  Using the trailers argument could cause sending more bytes from
  the input file than was specified.

Thanks Ned Deily for testing on 32-bit MacOS.
(cherry picked from commit 9d5727326af53ddd91016d98e16ae7cf829caa95)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years ago[3.7] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) (GH-8581)
Serhiy Storchaka [Tue, 31 Jul 2018 07:22:44 +0000 (10:22 +0300)] 
[3.7] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) (GH-8581)

* help(hashlib) didn't work because of incorrect module name in blake2b and
  blake2s classes.
* Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly
  accepted keyword argument "string" for binary data, but documented as
  accepting the "data" keyword argument. Now this parameter is positional-only.
* Keyword-only parameters in blake2b() and blake2s() were not documented as
  keyword-only.
* Default value for some parameters of blake2b() and blake2s() was None,
  which is not acceptable value.
* The length argument for shake_*.digest() was wrapped out to 32 bits.
* The argument for shake_128.digest() and shake_128.hexdigest() was not
  positional-only as intended.
* TypeError messages for incorrect arguments in all constructors sha3_*(),
  shake_*() and keccak_*() incorrectly referred to sha3_224.

Also made the following enhancements:

* More accurately specified input and result types for strings, bytes and
  bytes-like objects.
* Unified positional parameter names for update() and constructors.
* Improved formatting.
(cherry picked from commit f1d36d8efaecd5c84cb35e35119b283f37d83c40)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoRevert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expre...
Miss Islington (bot) [Tue, 31 Jul 2018 06:52:49 +0000 (23:52 -0700)] 
Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (GH-8241)

This reverts commit af810b35b494ef1d255d4bf340b92a9dad446995.

This is not valid syntax (see bpo-32012).
(cherry picked from commit 4b8a7f51da224d1a0ad8159935f78ba4e6e16037)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-27671: Update FAQ about why len is function (GH-8432)
Miss Islington (bot) [Tue, 31 Jul 2018 05:54:25 +0000 (22:54 -0700)] 
bpo-27671: Update FAQ about why len is function (GH-8432)

(cherry picked from commit c48e26dcadbff8620bb5881d3bd148fc8894d0ef)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-33833: Fix ProactorSocketTransport AssertionError (GH-7893)
Miss Islington (bot) [Mon, 30 Jul 2018 20:04:30 +0000 (13:04 -0700)] 
bpo-33833: Fix ProactorSocketTransport AssertionError (GH-7893)

(cherry picked from commit 9045199c5aaeac9b52537581be127d999b5944ee)

Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>
7 years agoUse 'for example' instead of 'in other words' in compound statement doc (GH-8401)
Miss Islington (bot) [Mon, 30 Jul 2018 19:30:31 +0000 (12:30 -0700)] 
Use 'for example' instead of 'in other words' in compound statement doc (GH-8401)

(cherry picked from commit 6921ef7bef4eab3819b3d0fda5fa3e3b2a8c0613)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoFix typos & formatting in Using Python on Windows doc (GH-8559)
Miss Islington (bot) [Mon, 30 Jul 2018 18:09:22 +0000 (11:09 -0700)] 
Fix typos & formatting in Using Python on Windows doc (GH-8559)

(cherry picked from commit 8e7e8bd8984068e3245d64b9a21e6840880747af)

Co-authored-by: Segev Finer <segev208@gmail.com>
7 years agobpo-34217: Use lowercase header for Windows (GH-8453)
Miss Islington (bot) [Mon, 30 Jul 2018 06:15:51 +0000 (23:15 -0700)] 
bpo-34217: Use lowercase header for Windows (GH-8453)

(cherry picked from commit 6cf8255912c36fec6f87f62513034d0818f61390)

Co-authored-by: erikjanss <erik.janssens@conceptive.be>
7 years agobpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)
Miss Islington (bot) [Sun, 29 Jul 2018 19:57:21 +0000 (12:57 -0700)] 
bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)

(cherry picked from commit 3f8c6913b82ed9c05e57175bcbfeacde46c598e3)

Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
7 years agobpo-34182: Fix test_pydoc running as a script. (GH-8389)
Miss Islington (bot) [Sun, 29 Jul 2018 19:50:33 +0000 (12:50 -0700)] 
bpo-34182: Fix test_pydoc running as a script. (GH-8389)

(cherry picked from commit 4e11c461ed39085b8495a35c9367b46d8a0d306d)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
7 years agobpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)
Miss Islington (bot) [Sun, 29 Jul 2018 15:42:18 +0000 (08:42 -0700)] 
bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)

(cherry picked from commit d2e902e4fb304f27e4a72356efbc1fc26be3935d)

Co-authored-by: Franz Wöllert <franz.woellert@gmail.com>
7 years agobpo-34231: PYTHONBREAKPOINT is not documented on python --help (GH-8475)
Steve Dower [Sun, 29 Jul 2018 11:17:49 +0000 (12:17 +0100)] 
bpo-34231: PYTHONBREAKPOINT is not documented on python --help (GH-8475)

7 years agobpo-8145: Improve isolation_level documentation (GH-8499)
Steve Dower [Sun, 29 Jul 2018 11:06:35 +0000 (12:06 +0100)] 
bpo-8145: Improve isolation_level documentation (GH-8499)

Initial patch by R. David Murray.

7 years agoUpdated MSI README to mention dependency on .NET 3.5. (GH-8375)
Miss Islington (bot) [Sun, 29 Jul 2018 10:06:42 +0000 (03:06 -0700)] 
Updated MSI README to mention dependency on .NET 3.5. (GH-8375)

(cherry picked from commit c536beedd50b0071208b4108ba9b48a36ffced79)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
7 years agobpo-33666: Add what's new entry for os.errno removal (GH-8497) (GH-8526)
Miss Islington (bot) [Sun, 29 Jul 2018 09:39:48 +0000 (02:39 -0700)] 
bpo-33666: Add what's new entry for os.errno removal (GH-8497) (GH-8526)

(cherry picked from commit 1d2dafa249c7fb34f3d24e7a77d1bea02907d92b)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-30237: Output error when ReadConsole is canceled by CancelSynchronousIo. (GH...
Miss Islington (bot) [Sun, 29 Jul 2018 09:32:02 +0000 (02:32 -0700)] 
bpo-30237: Output error when ReadConsole is canceled by CancelSynchronousIo. (GH-7911)

(cherry picked from commit ce75df3031c86b78311b1ad76c39c0b39d7d7424)

Co-authored-by: ValeriyaSinevich <valeriya.sinevich@phystech.edu>
7 years agobpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)
Miss Islington (bot) [Sun, 29 Jul 2018 00:14:44 +0000 (17:14 -0700)] 
bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)

(cherry picked from commit 11eb1a94704142385ffc07852739863ced8587d2)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agobpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)
Miss Islington (bot) [Sat, 28 Jul 2018 16:52:14 +0000 (09:52 -0700)] 
bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)

Mathematically, bitwise operations on integers behave as if there were an
infinite number of sign bits. Pragmatically, that gives the same answer as
using one extra sign bit for the bitwise logical operations.
(cherry picked from commit b4bc5cab82e6855e4ebc33ba0b669ddffad30fb3)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
7 years agobpo-24356: Specify which Python binary will be used with venv (GH-6589)
Steve Dower [Sat, 28 Jul 2018 16:48:29 +0000 (17:48 +0100)] 
bpo-24356: Specify which Python binary will be used with venv (GH-6589)

7 years agobpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)
Miss Islington (bot) [Sat, 28 Jul 2018 15:41:26 +0000 (08:41 -0700)] 
bpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)

(cherry picked from commit 8fe9eed937cb69b5e26ac6e36a90b5360eb11277)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
7 years agobpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)
Miss Islington (bot) [Sat, 28 Jul 2018 12:27:15 +0000 (05:27 -0700)] 
bpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)

Clarify how to bind to all interfaces using socket
(cherry picked from commit 95dfb9c3aefdc981d23af700b753a6c97159ccad)

Co-authored-by: johnthagen <johnthagen@users.noreply.github.com>
7 years agobpo-5978: Document that profiling needs cmd/function to return (GH-7938)
Miss Islington (bot) [Sat, 28 Jul 2018 12:23:42 +0000 (05:23 -0700)] 
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)

<!-- issue-number: bpo-5978 -->
https://bugs.python.org/issue5978
<!-- /issue-number -->
(cherry picked from commit 937fb55d35373fd2701078251840b6be0465a6e1)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-30722: Fix NEWS entries (GH-8501)
Miss Islington (bot) [Fri, 27 Jul 2018 16:17:20 +0000 (09:17 -0700)] 
bpo-30722: Fix NEWS entries (GH-8501)

(cherry picked from commit 612dbefe9dfce0f67bce358613e472e913be8a57)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agovsts: Avoid conflict with Homebrew Python (GH-8430)
Miss Islington (bot) [Fri, 27 Jul 2018 08:05:35 +0000 (01:05 -0700)] 
vsts: Avoid conflict with Homebrew Python (GH-8430)

/usr/local/lib/pythonX.Y is used by Homebrew's Python already.
(cherry picked from commit 3e7d18a54b9243b9652c9ddab87c2b9153dc365f)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-12743: Delete comment from marshal.rst (GH-8457)
Miss Islington (bot) [Fri, 27 Jul 2018 04:40:37 +0000 (21:40 -0700)] 
bpo-12743: Delete comment from marshal.rst (GH-8457)

Also, update the list of exceptions that may raised by PyMarshal_*
functions. We usually don't document exceptions raised by a
function, but in this case most of them were already documented
in C API and standard library documentation.
(cherry picked from commit defcffdf86780e3a184ebb25dc9a7b807753d57a)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agobpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)
Steve Dower [Thu, 26 Jul 2018 16:17:02 +0000 (17:17 +0100)] 
bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)

7 years agobpo-32663 Make SMTPUTF8SimTests run (GH-5314) (#8471)
Miss Islington (bot) [Thu, 26 Jul 2018 13:58:16 +0000 (06:58 -0700)] 
bpo-32663 Make SMTPUTF8SimTests run (GH-5314) (#8471)

Enable and fix SMTPUTF8SimTests in test_smtplib.

The tests for SMTPUTF8SimTests in test_smtplib.py were not actually
being run because test_smtplib was still using the 'test_main' pattern,
and the class was never added to test_main.

Additionally, one of the tests needed to be moved to the non-UTF8 server
class because it relies on the server not being UTF-8 compatible (and it
had a bug in in).
(cherry picked from commit 48ed88a93bb0bbeaae9a4cfaa533e4edf13bcb51)

Co-authored-by: chason <chason@gmail.com>
7 years agobpo-29097: Forego fold detection on windows for low timestamp values (GH-2385) (GH...
Miss Islington (bot) [Wed, 25 Jul 2018 20:34:09 +0000 (13:34 -0700)] 
bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385) (GH-8466)

On Windows, passing a negative value to local results in an OSError because localtime_s on Windows does not support negative timestamps. Unfortunately this means that fold detection for timestamps between 0 and max_fold_seconds will result in this OSError since we subtract max_fold_seconds from the timestamp to detect a fold. However, since we know there haven't been any folds in the interval [0, max_fold_seconds) in any timezone, we can hackily just forego fold detection for this time range on Windows.
(cherry picked from commit 96d1e69a12ed8ab80203277e1abdaf573457a964)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
7 years agobpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
Miss Islington (bot) [Wed, 25 Jul 2018 17:52:18 +0000 (10:52 -0700)] 
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)

(cherry picked from commit c0f0a7669c73c0d444851dd4c5299de2479214cc)

Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
7 years agoFix site module documentation. (GH-8441)
Miss Islington (bot) [Tue, 24 Jul 2018 17:30:33 +0000 (10:30 -0700)] 
Fix site module documentation. (GH-8441)

The script will exit with the number 0 (zero), instead of the letter O.
(cherry picked from commit 95d34c2a37f4c5046f6439abef881925d34fe4ac)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
7 years ago[3.7] bpo-34136: Make test_do_not_recreate_annotations more reliable. (GH-8364) ...
Miss Islington (bot) [Tue, 24 Jul 2018 12:05:57 +0000 (05:05 -0700)] 
[3.7] bpo-34136: Make test_do_not_recreate_annotations more reliable. (GH-8364) (GH-8365)

(cherry picked from commit 06ca3f0c09d017b9d741553818459cca2d5da587)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH...
Miss Islington (bot) [Tue, 24 Jul 2018 10:53:39 +0000 (03:53 -0700)] 
bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH-8435)

Now base64.Error is always raised instead of UnboundLocalError or
OverflowError.
(cherry picked from commit ac0b3c2f4d86fc056b833a4e6b9a380741244a63)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262...
Miss Islington (bot) [Mon, 23 Jul 2018 22:41:26 +0000 (15:41 -0700)] 
bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262) (GH-8423)

(cherry picked from commit aba24ff3601ddc86b85e01880a8be596fb799287)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381) ...
Miss Islington (bot) [Mon, 23 Jul 2018 22:02:00 +0000 (15:02 -0700)] 
bpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381) (GH-8422)

(cherry picked from commit db8e3a1e4476620b2b5aaf57acfc3ef58a08213b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-34190: Fix reference leak in call_function() (GH-8413) (GH-8418)
Miss Islington (bot) [Mon, 23 Jul 2018 21:45:26 +0000 (14:45 -0700)] 
bpo-34190: Fix reference leak in call_function() (GH-8413) (GH-8418)

(cherry picked from commit 147d95511f59cfdd2d522f9d736f2335457bae20)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
7 years agobpo-33468: Add try-finally contextlib.contextmanager example (GH-7816) (GH-8425)
Miss Islington (bot) [Mon, 23 Jul 2018 21:38:18 +0000 (14:38 -0700)] 
bpo-33468: Add try-finally contextlib.contextmanager example (GH-7816) (GH-8425)

(cherry picked from commit bde782bb594edffeabe978abeee2b7082ab9bc2a)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
7 years agobpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382) (GH-8421)
Miss Islington (bot) [Mon, 23 Jul 2018 21:25:11 +0000 (14:25 -0700)] 
bpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382) (GH-8421)

(cherry picked from commit 3fe5cccb08283f5f4817ac432560972a4c0f5290)

7 years agobpo-33336, imaplib: Legalize MOVE command (GH-6569) (GH-8409)
Miss Islington (bot) [Mon, 23 Jul 2018 13:54:46 +0000 (06:54 -0700)] 
bpo-33336, imaplib: Legalize MOVE command (GH-6569) (GH-8409)

imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.
(cherry picked from commit caa331d492acc67d8f4edd16542cebfabbbe1e79)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
7 years agobpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406) (GH-8407)
Miss Islington (bot) [Mon, 23 Jul 2018 12:39:11 +0000 (05:39 -0700)] 
bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406) (GH-8407)

When Python is installed on Windows, python -m test test_tools failed
because it tried to run Tools\scripts\2to3.py which requires an
argument. Skip this script. On other platforms or on Windows but when
run from source code (not installed), the script is called "2to3"
instead of "2to.py" and so was already skipped.

Modify also the unit test to unload all modules which have been
loaded by the test.
(cherry picked from commit 752d4b7531093c55d6f0a5846748f981d79b29d3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-21446: Update reload fixer to use importlib (GH-8391)
Miss Islington (bot) [Mon, 23 Jul 2018 08:11:22 +0000 (01:11 -0700)] 
bpo-21446: Update reload fixer to use importlib (GH-8391)

(cherry picked from commit 7a3056fa7dd1223fe7112e53b236c43d71f33f64)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years agobpo-940286: Fix pydoc to show cross refs correctly (GH-8390)
Miss Islington (bot) [Mon, 23 Jul 2018 06:51:54 +0000 (23:51 -0700)] 
bpo-940286: Fix pydoc to show cross refs correctly (GH-8390)

(cherry picked from commit d04f46c59f1d07d9bcc0ba910741296ac88d370d)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
7 years ago[3.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396) (GH-8398)
Serhiy Storchaka [Sun, 22 Jul 2018 19:14:15 +0000 (22:14 +0300)] 
[3.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396) (GH-8398)

(cherry picked from commit e271ca78e37a502b3dc1036f824aa3999efcd56b)
(cherry picked from commit c75c1e0e8aeb720ac3fcfab119b70cabba4e8235)

7 years agobpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380) (GH-8385)
Miss Islington (bot) [Sun, 22 Jul 2018 10:41:41 +0000 (03:41 -0700)] 
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380) (GH-8385)

(cherry picked from commit 961360923e7997a04833652623ea549b0dc02262)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoFix versionchanged indentation in popitem documentation (GH-8387)
Miss Islington (bot) [Sat, 21 Jul 2018 23:04:54 +0000 (16:04 -0700)] 
Fix versionchanged indentation in popitem documentation (GH-8387)

(cherry picked from commit cb9c299a55c244f77563c60e5a4afcc2221eac21)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-34179: Make sure decimal context doesn't affect other tests. (GH-8376) (#8383)
Miss Islington (bot) [Sat, 21 Jul 2018 18:38:19 +0000 (11:38 -0700)] 
bpo-34179:  Make sure decimal context doesn't affect other tests.  (GH-8376) (#8383)

(cherry picked from commit 938045f335b52ddb47076e9fbe4229a33b4bd9be)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
7 years agobpo-34126: Fix crashes while profiling invalid calls. (GH-8300) (GH-8371)
Miss Islington (bot) [Sat, 21 Jul 2018 16:58:35 +0000 (09:58 -0700)] 
bpo-34126: Fix crashes while profiling invalid calls. (GH-8300) (GH-8371)

(cherry picked from commit 56868f940e0cc0b35d33c0070107ff3bed2d8766)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
7 years ago[3.7] bpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367) (GH-8369)
Xtreak [Sat, 21 Jul 2018 07:25:03 +0000 (12:55 +0530)] 
[3.7] bpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367) (GH-8369)

(cherry picked from commit a692efe4733f98831cb51a9683877b152f754d14)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
7 years agobpo-33723: Fix test_time.test_process_time() (GH-8358) (GH-8362)
Miss Islington (bot) [Sat, 21 Jul 2018 01:52:44 +0000 (18:52 -0700)] 
bpo-33723: Fix test_time.test_process_time() (GH-8358) (GH-8362)

The test failed on my laptop because the busy loop took 15.9 ms
whereas the test expects at least 20 ms. Modify test_process_time()
as test_thread_time() has been modified recently: only require 15 ms
instead of 20 ms.
(cherry picked from commit e78dace8dcb23c371df19c9add65895adf436995)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-34008: Allow to call Py_Main() after Py_Initialize() (GH-8043) (GH-8352)
Miss Islington (bot) [Sat, 21 Jul 2018 00:16:22 +0000 (17:16 -0700)] 
bpo-34008: Allow to call Py_Main() after Py_Initialize() (GH-8043) (GH-8352)

Py_Main() can again be called after Py_Initialize(), as in Python
3.6. The new configuration is ignored, except of
_PyMainInterpreterConfig.argv which is used to update sys.argv.
(cherry picked from commit fb47bca9ee2d07ce96df94b4e4abafd11826eb01)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-34161: Remove extra parentheses in output formatting tutorial (GH-8350)
Miss Islington (bot) [Fri, 20 Jul 2018 20:38:06 +0000 (13:38 -0700)] 
bpo-34161: Remove extra parentheses in output formatting tutorial (GH-8350)

The parentheses were incorrect.
(cherry picked from commit cb5f3fdb9d353a572dd22fb50a110e52d5bb81b1)

Co-authored-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
7 years agobpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345) (GH-8347)
Terry Jan Reedy [Fri, 20 Jul 2018 06:48:17 +0000 (02:48 -0400)] 
bpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345) (GH-8347)

Cherry-picked from 2c5c0a3

7 years ago[3.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
Zachary Ware [Fri, 20 Jul 2018 02:50:52 +0000 (21:50 -0500)] 
[3.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)

(cherry picked from commit b12112b5ba608cdd7a0962a6b18cad4fe58b46e6)

7 years agobpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)
Miss Islington (bot) [Thu, 19 Jul 2018 09:27:42 +0000 (02:27 -0700)] 
bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)

Increase the timeout: give timeout x 4 instead of timeout x 2 to
threads to wait until the Event is set, but reduce the sleep from 500
ms to 250 ms. So the test should be more reliable and faster!
(cherry picked from commit 81950495ba2c36056e0ce48fd37d514816c26747)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years ago[3.7] bpo-34130: Fix 2 race conditions in test_signal (GH-8329)
Victor Stinner [Wed, 18 Jul 2018 16:49:27 +0000 (18:49 +0200)] 
[3.7] bpo-34130: Fix 2 race conditions in test_signal (GH-8329)

* bpo-34130: Fix test_signal.test_socket() (GH-8326)

test_signal.test_socket(): On Windows, sometimes even if the C signal handler
succeed to write the signal number into the write end of the socketpair, the
test fails with a BlockingIOError on the non-blocking read.recv(1) because the
read end of the socketpair didn't receive the byte yet.

Fix the race condition on Windows by setting the read end as blocking.

(cherry picked from commit 99bb6df66a42625367c4f38e6802c8bb527baf4a)

* bpo-34130: Fix test_signal.test_warn_on_full_buffer() (GH-8327)

On Windows, sometimes test_signal.test_warn_on_full_buffer() fails to
fill the socketpair buffer. In that case, the C signal handler
succeed to write into the socket, it doesn't log the expected send
error, and so the test fail.

On Windows, the test now uses a timeout of 50 ms to fill the
socketpair buffer to fix this race condition.

Other changes:

* Begin with large chunk size to fill the buffer to speed up the
  test.
* Add error messages to assertion errors to more easily identify
  which assertion failed.
* Don't set the read end of the socketpair as non-blocking.

(cherry picked from commit 686b4b5ff219ed66714f3b811815776dafadc23b)

7 years agoClarify ValueError's broad applicability (GH-8313) (GH-8315)
Miss Islington (bot) [Tue, 17 Jul 2018 20:22:50 +0000 (13:22 -0700)] 
Clarify ValueError's broad applicability (GH-8313) (GH-8315)

(cherry picked from commit feabae961707b00008c15a31352e458f4e8b3a6c)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
7 years agobpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an exception...
Miss Islington (bot) [Tue, 17 Jul 2018 07:09:32 +0000 (00:09 -0700)] 
bpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an exception set (GH-8282)

(cherry picked from commit 28f07364f066792ceee93231dbb80ae8ad98b2bb)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-33967: Fix wrong use of assertRaises (GH-8306)
Miss Islington (bot) [Tue, 17 Jul 2018 05:18:56 +0000 (22:18 -0700)] 
bpo-33967: Fix wrong use of assertRaises (GH-8306)

(cherry picked from commit 56d8f57b83a37b05a6f2fbc3e141bbc1ba6cb3a2)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292) (GH#8307)
Miss Islington (bot) [Tue, 17 Jul 2018 02:08:13 +0000 (19:08 -0700)] 
bpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292) (GH#8307)

7 years agobpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)
Miss Islington (bot) [Mon, 16 Jul 2018 18:43:41 +0000 (11:43 -0700)] 
bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)

(cherry picked from commit c9265c1534b7e62bb9b15460d0420c0c3bb57ff9)

Co-authored-by: Jon Ribbens <jribbens@gmail.com>
7 years agobpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296)
Miss Islington (bot) [Mon, 16 Jul 2018 09:40:11 +0000 (02:40 -0700)] 
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296)

It was added in test_functools at 445f1b3.
(cherry picked from commit 9e9b2c32a34594e901b5b9a03c561a2a2bf63ece)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847) (GH-8294)
Miss Islington (bot) [Mon, 16 Jul 2018 09:02:23 +0000 (02:02 -0700)] 
bpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847) (GH-8294)

Replace deprecated inspect.getfullargspec() with inspect.signature().
(cherry picked from commit 35c0809158be7feae4c4f877a08b93baea2d8291)

Co-authored-by: Nicolas Noé <nicolas@niconoe.org>
7 years agobpo-24618: Add a check in the code constructor. (GH-8283)
Miss Islington (bot) [Mon, 16 Jul 2018 07:09:44 +0000 (00:09 -0700)] 
bpo-24618: Add a check in the code constructor. (GH-8283)

Check that the size of the varnames tuple is enough at least for all arguments.
(cherry picked from commit bd47384e07bde38a8f18b90b4cea02a505d95c75)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-34121: Fix detection of C11 atomic support on clang. (GH-8288)
Miss Islington (bot) [Mon, 16 Jul 2018 00:44:11 +0000 (17:44 -0700)] 
bpo-34121: Fix detection of C11 atomic support on clang. (GH-8288)

(cherry picked from commit 15c7b2abdfb93f8902dd72474818aee2bf97fa66)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)
Miss Islington (bot) [Sat, 14 Jul 2018 03:58:12 +0000 (20:58 -0700)] 
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)

`_PyUnicode_TransformDecimalAndSpaceToASCII()` missed trailing NUL char.
It caused buffer overflow in `_Py_string_to_number_with_underscores()`.

This bug is introduced in 9b6c60cb.
(cherry picked from commit 16dfca4d829e45f36e71bf43f83226659ce49315)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years agobpo-34108: Fix double carriage return in 2to3 on Windows (GH-8271) (#8275)
Miss Islington (bot) [Fri, 13 Jul 2018 19:24:19 +0000 (12:24 -0700)] 
bpo-34108: Fix double carriage return in 2to3 on Windows (GH-8271) (#8275)

* Add test capturing failure.
* Honor newlines as present in the original file.
(cherry picked from commit cafaf0447b950fd4f59edd8cbde040c61ae528f8)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
7 years agobpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924)
Miss Islington (bot) [Fri, 13 Jul 2018 13:35:31 +0000 (06:35 -0700)] 
bpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924)

(cherry picked from commit 379e9d639a52766f79c7a206c5096c8333d1896f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33723: Fix test_time.test_thread_time() (GH-8267)
Miss Islington (bot) [Thu, 12 Jul 2018 14:05:43 +0000 (07:05 -0700)] 
bpo-33723: Fix test_time.test_thread_time() (GH-8267)

The test failed on AMD64 Debian root 3.x buildbot because the busy
loop of 100 ms only increased time.thread_time() by 19.9 ms which is
smaller than 20 ms. Modify the test to tolerate a delta of at least
15 ms instead of 20 ms.
(cherry picked from commit d6345def68d3a0227253da26213dadb247f786db)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-33716, test_concurrent_futures: increase timeout (GH-7828)
Miss Islington (bot) [Thu, 12 Jul 2018 09:05:49 +0000 (02:05 -0700)] 
bpo-33716, test_concurrent_futures: increase timeout (GH-7828)

Increase the timeout from 1 min to 5 min.

Replace also time.time() with time.monotonic() for timeouts.
(cherry picked from commit 3ad8decd76c736f393755537aeb19b5612c21761)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
7 years agobpo-34080: Fix a memory leak in the compiler. (GH-8222)
Miss Islington (bot) [Wed, 11 Jul 2018 21:54:29 +0000 (14:54 -0700)] 
bpo-34080: Fix a memory leak in the compiler. (GH-8222)

(cherry picked from commit 993030aac576710a46b3dd0b4864f819d4a94145)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)
Miss Islington (bot) [Wed, 11 Jul 2018 16:56:05 +0000 (09:56 -0700)] 
bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)

(cherry picked from commit 504373c59b48f1ea12132d515459022730db6047)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)
Miss Islington (bot) [Wed, 11 Jul 2018 14:48:42 +0000 (07:48 -0700)] 
bpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)

This code does not appear to be used anywhere in the python code base.
The use was removed in eb81795d7d3a8c898fa89.
(cherry picked from commit b91a3a0d61596cafb1b46c98fab65fee16a8bbbb)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
7 years agobpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245) (GH-8247)
Miss Islington (bot) [Wed, 11 Jul 2018 13:56:45 +0000 (06:56 -0700)] 
bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245) (GH-8247)

Change test_logging.SMTPHandlerTest timeout from 8 seconds to 1
minute. The test failed randomly on the slow x86 Gentoo Refleaks 3.7
buildbot.
(cherry picked from commit 31b50b8cbfbf49d5fc17c612cf0dfaa4d0c24983)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-34083: Update dict order in Functional HOWTO (GH-8230)
Miss Islington (bot) [Wed, 11 Jul 2018 11:21:52 +0000 (04:21 -0700)] 
bpo-34083: Update dict order in Functional HOWTO (GH-8230)

(cherry picked from commit 5e5bbbec467a1569c914a048a94e7597528f92cf)

Co-authored-by: Stig Johan Berggren <stigjb@gmail.com>
7 years agoDoc: Point to Simple statements section instead of PEP (GH-8238)
Miss Islington (bot) [Wed, 11 Jul 2018 10:32:31 +0000 (03:32 -0700)] 
Doc: Point to Simple statements section instead of PEP (GH-8238)

(cherry picked from commit 33aefad3424853ff197c23431efec89d6598b19d)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoDataclasses: Fix example on 30.6.8, add method should receive a list rather than...
Miss Islington (bot) [Wed, 11 Jul 2018 10:11:11 +0000 (03:11 -0700)] 
Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (GH-8038) (GH-8237)

Change example function to append rather than add lists.
(cherry picked from commit da5e9476bbfbe61f7661fd22caba1b675e5b4397)

Co-authored-by: Tom Faulkner <tomfaulkner@gmail.com>