]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)
Victor Stinner [Mon, 18 Mar 2019 17:34:11 +0000 (18:34 +0100)] 
bpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)

The test test_customize_compiler() now mocks all sysconfig variables
and all environment variables used by customize_compiler().

(cherry picked from commit 72c7b372cf145fded93a9a776acc742a60090f95)

6 years agobpo-36272: Logging now propagates RecursionError (GH-12312) (GH-12391)
Miss Islington (bot) [Mon, 18 Mar 2019 14:22:41 +0000 (07:22 -0700)] 
bpo-36272: Logging now propagates RecursionError (GH-12312) (GH-12391)

(cherry picked from commit 65f64b1903ae85b97a30f514bbc1b7ce940c3af2)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years agobpo-36317: Fix typo in _PyObject_FastCallDict documentation (GH-12383) (GH-12402)
Rémi Lapeyre [Mon, 18 Mar 2019 11:51:23 +0000 (12:51 +0100)] 
bpo-36317: Fix typo in _PyObject_FastCallDict documentation (GH-12383) (GH-12402)

(cherry picked from commit b4b97af8bed21e32eb77e7f7497acde1f8af4e70)

6 years agobpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) (GH-12395)
Miss Islington (bot) [Mon, 18 Mar 2019 07:48:02 +0000 (00:48 -0700)] 
bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) (GH-12395)

(cherry picked from commit 23581c018fceb607fe829a41c6fbe81b4d502cab)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agoFix typo in unittest.mock documentation: manger -> manager (GH-12352)
Mariatta [Sun, 17 Mar 2019 23:53:06 +0000 (16:53 -0700)] 
Fix typo in unittest.mock documentation: manger -> manager (GH-12352)

(cherry picked from commit dc69f69f14fb89511d018a3927fc6378a58d2def)

Co-authored-by: Joan Massich <mailsik@gmail.com>
6 years agoFix "catchs" typos in NEWS entries (GH-12364)
Harmon [Sun, 17 Mar 2019 23:49:43 +0000 (18:49 -0500)] 
Fix "catchs" typos in NEWS entries (GH-12364)

6 years agobpo-34745: Fix asyncio sslproto memory issues (GH-12386)
Miss Islington (bot) [Sun, 17 Mar 2019 23:09:14 +0000 (16:09 -0700)] 
bpo-34745: Fix asyncio sslproto memory issues (GH-12386)

* Fix handshake timeout leak in asyncio/sslproto

Refs MagicStack/uvloopGH-222

* Break circular ref _SSLPipe <-> SSLProtocol

* bpo-34745: Fix asyncio ssl memory leak

* Break circular ref SSLProtocol <-> UserProtocol

* Add NEWS entry
(cherry picked from commit f683f464259715d620777d7ed568e701337a703a)

Co-authored-by: Fantix King <fantix.king@gmail.com>
6 years agobpo-23216: IDLE: Add docstrings to search modules (GH-12141)
Miss Islington (bot) [Sat, 16 Mar 2019 23:47:28 +0000 (16:47 -0700)] 
bpo-23216: IDLE: Add docstrings to search modules (GH-12141)

(cherry picked from commit 0bb5e75cf8bc9b197ffb91cba6f30543ed502708)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agoUpdate the seealso entries for namedtuple() (GH-12373)
Miss Islington (bot) [Sat, 16 Mar 2019 20:01:35 +0000 (13:01 -0700)] 
Update the seealso entries for namedtuple() (GH-12373)

* Replace external recipe link with a link to the dataclasses module.

* Highlight the class definition syntax for typing.NamedTuple
  and add an example for clarity.
(cherry picked from commit 9c68543f022b130ff51944edc6771c60510ee683)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137)
Miss Islington (bot) [Sat, 16 Mar 2019 04:03:43 +0000 (21:03 -0700)] 
bpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137)

Be explicit that timedelta division converts an overall duration to the interval
units given by the denominator.
(cherry picked from commit f40b4a0b6277b2779b9ded3736325489f2af93e4)

Co-authored-by: Yasser A <yalshalaan@gmail.com>
6 years agobpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12348)
Victor Stinner [Fri, 15 Mar 2019 15:03:50 +0000 (16:03 +0100)] 
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12348)

Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 86082c22d23285995a32aabb491527c9f5629556)

6 years agoFix typo duplicate period in a docstring in the zipfile module. (GH-12326)
Miss Islington (bot) [Fri, 15 Mar 2019 04:52:59 +0000 (21:52 -0700)] 
Fix typo duplicate period in a docstring in the zipfile module. (GH-12326)

(cherry picked from commit 53c2935dac9d814a3d0bae504dae2ee1c941c731)

Co-authored-by: nick sung <sungboss2004@gmail.com>
6 years agobpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12331) 12337/head
Victor Stinner [Thu, 14 Mar 2019 16:12:01 +0000 (17:12 +0100)] 
bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12331)

Fix an unlikely memory leak on conversion from string to float in the
function _Py_dg_strtod() used by float(str), complex(str),
pickle.load(), marshal.load(), etc.

Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
rewrite memory management in this function to always release all
memory before exiting the function. Initialize variables to NULL, and
set them to NULL after calling Bfree() at the "cont:" label.

Note: Bfree(NULL) is well defined: it does nothing.

(cherry picked from commit 9776b0636ae39668d3ce1c006d4be01dad01bf9f)

6 years ago[3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322)
Serhiy Storchaka [Thu, 14 Mar 2019 08:47:27 +0000 (10:47 +0200)] 
[3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322)

(cherry picked from commit d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoRemove NEWS entries duplicated from 3.7.2final. (GH-12309)
Ned Deily [Wed, 13 Mar 2019 14:49:21 +0000 (10:49 -0400)] 
Remove NEWS entries duplicated from 3.7.2final. (GH-12309)

6 years agobpo-36174: Update nuget authoring for new license field. (GH-12300)
Miss Islington (bot) [Wed, 13 Mar 2019 00:11:08 +0000 (17:11 -0700)] 
bpo-36174: Update nuget authoring for new license field. (GH-12300)

(cherry picked from commit 26c910c59c47bdef4220c34e66c45a625bda5e56)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoCorrect minor edit to news entry. (GH-12299)
Ned Deily [Tue, 12 Mar 2019 23:44:41 +0000 (19:44 -0400)] 
Correct minor edit to news entry. (GH-12299)

6 years agobump to 3.7.3rc1+
Ned Deily [Tue, 12 Mar 2019 22:09:08 +0000 (18:09 -0400)] 
bump to 3.7.3rc1+

6 years ago3.7.3rc1 v3.7.3rc1
Ned Deily [Tue, 12 Mar 2019 19:14:21 +0000 (15:14 -0400)] 
3.7.3rc1

6 years agoMinor edits to news entries for 3.7.3 (GH-12292)
Ned Deily [Tue, 12 Mar 2019 16:20:44 +0000 (12:20 -0400)] 
Minor edits to news entries for 3.7.3 (GH-12292)

6 years agobpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (GH-12284)
Miss Islington (bot) [Tue, 12 Mar 2019 09:17:17 +0000 (02:17 -0700)] 
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (GH-12284)

(cherry picked from commit 1ceb3a3d172dcf0ddff38d5d6b559443ad065b84)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
6 years ago[3.7] bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103)...
Miss Islington (bot) [Tue, 12 Mar 2019 04:00:59 +0000 (21:00 -0700)] 
[3.7] bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103) (GH-12285)

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit 3e936431e23b424b1e4665e8165c245924f0ab02)

Co-authored-by: Daniel Hahler <github@thequod.de>
https://bugs.python.org/issue35931

6 years ago[3.7] Doc: Fix inconsistency in multiprocessing (GH-12273) (GH-12275)
Miss Islington (bot) [Mon, 11 Mar 2019 14:23:30 +0000 (07:23 -0700)] 
[3.7] Doc: Fix inconsistency in multiprocessing (GH-12273) (GH-12275)

(cherry picked from commit d9bd8ec2a40ea67bc4248a72943a409ee645ddf3)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-36234: Add more tests to PosixUidGidTests (GH-12234)
Miss Islington (bot) [Mon, 11 Mar 2019 13:18:40 +0000 (06:18 -0700)] 
bpo-36234: Add more tests to PosixUidGidTests (GH-12234)

test_posix.PosixUidGidTests:

* Add tests for invalid uid/gid type (str)
* Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 876e82b4f32075e1bd21750bf852a103035fce23)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-36176: Fix IDLE autocomplete & calltip popup colors. (GH-12262)
Miss Islington (bot) [Mon, 11 Mar 2019 00:37:36 +0000 (17:37 -0700)] 
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (GH-12262)

Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
(cherry picked from commit 491ef53c1548c2b593d3c35d1e7bf25ccb443019)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35647: Fix path check in cookiejar (GH-11436)
Miss Islington (bot) [Sun, 10 Mar 2019 17:30:35 +0000 (10:30 -0700)] 
bpo-35647: Fix path check in cookiejar (GH-11436)

* Refactor cookie path check as per RFC 6265

* Add tests for prefix match of path

* Add news entry

* Fix set_ok_path and refactor tests

* Use slice for last letter
(cherry picked from commit 0e1f1f01058bd4a9b98cfe443214adecc019a38c)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agobpo-21314: Add a FAQ entry about positional only parameters (GH-10641)
Miss Islington (bot) [Sun, 10 Mar 2019 11:36:18 +0000 (04:36 -0700)] 
bpo-21314: Add a FAQ entry about positional only parameters (GH-10641)

(cherry picked from commit 1aeeaeb79efa4de41f97b58547e23c2965ecabc5)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
6 years agoFix padding on asyncio.IncompleteReadError docs (GH-12258)
Miss Islington (bot) [Sun, 10 Mar 2019 11:12:12 +0000 (04:12 -0700)] 
Fix padding on asyncio.IncompleteReadError docs (GH-12258)

(cherry picked from commit 11205b80309a01666eefee2301a244aa73a4c450)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
Miss Islington (bot) [Sun, 10 Mar 2019 10:52:44 +0000 (03:52 -0700)] 
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)

(cherry picked from commit 8b91edadc06dcb0d391a65d1ecdf07dcb429df1b)

Co-authored-by: sth <sth.dev@tejp.de>
6 years agobpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-12261)
Miss Islington (bot) [Sun, 10 Mar 2019 02:58:25 +0000 (18:58 -0800)] 
bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-12261)

Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with `http.cookiejar.DefaultCookiePolicy` policy.  Patch by Karthikeyan Singaravelan.
(cherry picked from commit ca7fe5063593958e5efdf90f068582837f07bd14)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agoFix typos and improve grammar in threading.Barrier docstrings (GH-12210)
Miss Islington (bot) [Sat, 9 Mar 2019 17:56:40 +0000 (09:56 -0800)] 
Fix typos and improve grammar in threading.Barrier docstrings (GH-12210)

(cherry picked from commit 62fa51f1216e788310d3118f4259f1b4b1e529fe)

Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
6 years agobpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)
Miss Islington (bot) [Fri, 8 Mar 2019 21:44:39 +0000 (13:44 -0800)] 
bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)

* Update pip to 19.0.3
* Update setuptools to 40.8.0
(cherry picked from commit 01e0f439f5009f37b95ab516e91906fcc7fcb8c3)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
6 years agobpo-35899: Fix Enum handling of empty and weird strings (GH-11891)
Miss Islington (bot) [Fri, 8 Mar 2019 21:44:21 +0000 (13:44 -0800)] 
bpo-35899: Fix Enum handling of empty and weird strings (GH-11891)

Co-authored-by: Maxwell <maxwellpxt@gmail.com>
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
https://bugs.python.org/issue35899
(cherry picked from commit 8b914d2767acba3a9e78f1dacdc2d61dbfd7e304)

Co-authored-by: Brennan D Baraban <34765317+bdbaraban@users.noreply.github.com>
6 years agobpo-34162: Add entries for idlelib/NEWS.txt (GH-12232)
Miss Islington (bot) [Fri, 8 Mar 2019 08:25:52 +0000 (00:25 -0800)] 
bpo-34162: Add entries for idlelib/NEWS.txt (GH-12232)

(cherry picked from commit 8a1bab92915dd5c88832706c56af2f5611181d50)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoFix typo (double 'the') in CODEOWNERS (GH-12227)
Miss Islington (bot) [Fri, 8 Mar 2019 01:44:31 +0000 (17:44 -0800)] 
Fix typo (double 'the') in CODEOWNERS (GH-12227)

(cherry picked from commit f2320b37d9c85d8ddfc0c6afa81b77cd5f6e5ef2)

Co-authored-by: Benedikt Werner <1benediktwerner@gmail.com>
6 years agobpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
Miss Islington (bot) [Thu, 7 Mar 2019 18:39:34 +0000 (10:39 -0800)] 
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)

(cherry picked from commit bf94cc7b496a379e1f604aa2e4080bb70ca4020e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36108: Avoid failing the build on race condition in clean (GH-12217)
Miss Islington (bot) [Thu, 7 Mar 2019 17:44:53 +0000 (09:44 -0800)] 
bpo-36108: Avoid failing the build on race condition in clean (GH-12217)

(cherry picked from commit 2f8f56499c20af70ff5037fdbc5d738e56d9eab0)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36216: Add check for characters in netloc that normalize to separators (GH-12201)
Steve Dower [Thu, 7 Mar 2019 17:08:18 +0000 (09:08 -0800)] 
bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201)

6 years agoFix the documentation for set.copy() (GH-12176)
Miss Islington (bot) [Thu, 7 Mar 2019 05:30:33 +0000 (21:30 -0800)] 
Fix the documentation for set.copy() (GH-12176)

Remove 's' mention as there's no argument.
(cherry picked from commit e942e7b5c91995ae1ad967ef2c0f116a5d8555de)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204)
Miss Islington (bot) [Thu, 7 Mar 2019 05:24:55 +0000 (21:24 -0800)] 
bpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204)

(cherry picked from commit ecc161d1209bf6d21f0fd6bef28476eda7cdaf79)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
6 years agobpo-36209: Fix typo on hashlib error message (GH-12194)
Miss Islington (bot) [Wed, 6 Mar 2019 14:54:54 +0000 (06:54 -0800)] 
bpo-36209: Fix typo on hashlib error message (GH-12194)

(cherry picked from commit b71e28ea91259ca3914e2ff84fc126795ea6b848)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
6 years ago[3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178)
Victor Stinner [Tue, 5 Mar 2019 15:17:43 +0000 (16:17 +0100)] 
[3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178)

Use locale.getpreferredencoding() rather than locale.getlocale() to
get the locale encoding. With some locales, locale.getlocale()
returns the wrong encoding.

For example, on Fedora 29, locale.getlocale() returns ISO-8859-1
encoding for the "en_IN" locale, whereas
locale.getpreferredencoding() reports the correct encoding: UTF-8.

On Windows, set temporarily the LC_CTYPE locale to the user preferred
encoding to ensure that it uses the ANSI code page, to be consistent
with locale.getpreferredencoding().

6 years agoDoc: Use `option` word for command line interface. (GH-12142)
Miss Islington (bot) [Tue, 5 Mar 2019 04:49:47 +0000 (20:49 -0800)] 
Doc: Use `option` word for command line interface. (GH-12142)

For command line option, `option` is better than `parameter`.
(cherry picked from commit 0983fcd0d5bd00c6b0dd3040760226f67aa831cd)

Co-authored-by: NAKAMURA Osamu <osamu0329nakamura@users.noreply.github.com>
6 years agoFixed a missing . and a missing capital letter. (GH-12170)
Miss Islington (bot) [Mon, 4 Mar 2019 19:41:31 +0000 (11:41 -0800)] 
Fixed a missing . and a missing capital letter. (GH-12170)

(cherry picked from commit 7e9ce4c89e9a34ff84a89831812bc8b42d37ac1f)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
6 years agobpo-36179: Fix ref leaks in _hashopenssl (GH-12158)
Miss Islington (bot) [Mon, 4 Mar 2019 16:17:30 +0000 (08:17 -0800)] 
bpo-36179: Fix ref leaks in _hashopenssl (GH-12158)

Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue36179
(cherry picked from commit b7bc283ab6a23ee98784400ebffe7fe410232a2e)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-35198 Fix C++ extension compilation on AIX (GH-10437)
Miss Islington (bot) [Mon, 4 Mar 2019 15:06:36 +0000 (07:06 -0800)] 
bpo-35198 Fix C++ extension compilation on AIX (GH-10437)

For C++ extensions, distutils tries to replace the C compiler with the
C++ compiler, but it assumes that C compiler is the first element after
any environment variables set. On AIX, linking goes through ld_so_aix,
so it is the first element and the compiler is the next element. Thus
the replacement is faulty:

ld_so_aix gcc ... -> g++ gcc ...

Also, it assumed that self.compiler_cxx had only 1 element or that
there were the same number of elements as the linker has and in the
same order. This might not be the case, so instead concatenate
everything together.
(cherry picked from commit 800d5cd75025876d79ab05980925a05d8e36b63d)

Co-authored-by: Kevin Adler <kadler@us.ibm.com>
6 years agobpo-20906: Various revisions to the Unicode howto (GH-8394)
Miss Islington (bot) [Mon, 4 Mar 2019 13:01:47 +0000 (05:01 -0800)] 
bpo-20906: Various revisions to the Unicode howto  (GH-8394)

* bpo-20906: Corrections & revisions to Unicode HOWTO

* bpo-34484: don't describe range as a Private Use Area
(cherry picked from commit 97c288df614dd7856f5a0336925f56a7a2a5bc74)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
6 years agofixed duplicated method name of test_getuserbase() (GH-12140)
Miss Islington (bot) [Sun, 3 Mar 2019 23:09:10 +0000 (15:09 -0800)] 
fixed duplicated method name of test_getuserbase() (GH-12140)

(cherry picked from commit 45d8d2469a48589e950dad2452043188eb9399a3)

Co-authored-by: native-api <ivan_pozdeev@mail.ru>
6 years agoAutospec functions should propagate mock calls to parent GH-11273 (#12039)
Miss Islington (bot) [Sun, 3 Mar 2019 17:14:44 +0000 (09:14 -0800)] 
Autospec functions should propagate mock calls to parent GH-11273 (#12039)

(cherry picked from commit 9c3f284de598550be6687964c23fd7599e53b20e)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agobpo-36091: Remove reference to async generator in Lib/types.py. (GH-11996)
Miss Islington (bot) [Sun, 3 Mar 2019 14:54:39 +0000 (06:54 -0800)] 
bpo-36091: Remove reference to async generator in Lib/types.py. (GH-11996)

(cherry picked from commit 0a6a412fb27d6874a0db5cc82a97f54d7c5fd0f2)

Co-authored-by: Henry Chen <tahafut@gmail.com>
6 years agobpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)
Miss Islington (bot) [Fri, 1 Mar 2019 23:13:57 +0000 (15:13 -0800)] 
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)

 Patch by Kevin Walzer.
(cherry picked from commit 7eebbbd5b3907447eddadf5cb7cb1cc9230d15b2)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-35178: Fix warnings._formatwarnmsg() (GH-12033)
Miss Islington (bot) [Fri, 1 Mar 2019 17:40:10 +0000 (09:40 -0800)] 
bpo-35178: Fix warnings._formatwarnmsg() (GH-12033)

Ensure custom formatwarning function can receive line as positional argument.

Co-Authored-By: Tashrif Billah <tashrifbillah@gmail.com>
(cherry picked from commit be7c460fb50efe3b88a00281025d76acc62ad2fd)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agobpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109)
Miss Islington (bot) [Fri, 1 Mar 2019 10:43:43 +0000 (02:43 -0800)] 
bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109)

Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close().  In IDLE, both have always been None or False since 2007.
(cherry picked from commit b9f0354efce95b7557bc43ea193c4b652cd28392)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.7] Add versionadded directives to ssl.minimum_version and ssl.maxi… (GH-12101) 12112/head 12117/head
Cheryl Sabella [Thu, 28 Feb 2019 18:11:35 +0000 (13:11 -0500)] 
[3.7] Add versionadded directives to ssl.minimum_version and ssl.maxi… (GH-12101)

…mum_version (GH-11894).

(cherry picked from commit ae2ea33d5da34a777e77d489b700ff45d753934f)

Co-authored-by: Zhiming Wang <i@zhimingwang.org>
6 years agoDocument the surprising sideeffect PyErr_Print(). (GH-12081) 12090/head
Miss Islington (bot) [Wed, 27 Feb 2019 23:45:28 +0000 (15:45 -0800)] 
Document the surprising sideeffect PyErr_Print(). (GH-12081)

Did you know an API documented as printing the pending traceback would sometimes exit the process?

You do now.
(cherry picked from commit 4173772031747a9b249be4100b4aa9eda805ea23)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agoFix grammar error in timeit module docs (GH-12066)
Miss Islington (bot) [Wed, 27 Feb 2019 23:27:36 +0000 (15:27 -0800)] 
Fix grammar error in timeit module docs (GH-12066)

skip issue
skip news
(cherry picked from commit 4064089fce57c6fb2d1df9f3fb51d3fd5557696b)

Co-authored-by: Shiv Dhar <shivdhar@gmail.com>
6 years ago[3.7] Update FAQ to point to Infrastructure Team website. (GH-12077) (GH-12078)
Miss Islington (bot) [Wed, 27 Feb 2019 22:29:13 +0000 (14:29 -0800)] 
[3.7] Update FAQ to point to Infrastructure Team website. (GH-12077) (GH-12078)

(cherry picked from commit ccb92e814d289b89bccf9ad1b7d2ec6ecdebbfcb)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-36096: IDLE: Refactor class variables in colorizer (GH-12002) (GH-12075)
Miss Islington (bot) [Wed, 27 Feb 2019 19:14:06 +0000 (11:14 -0800)] 
bpo-36096: IDLE: Refactor class variables in colorizer (GH-12002) (GH-12075)

(cherry picked from commit ed1deb0719f0ac1b08a374e30ad26a701d4d51a2)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348)
Miss Islington (bot) [Wed, 27 Feb 2019 09:24:34 +0000 (01:24 -0800)] 
bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348)

This is needed to even the run the test suite on buildbots for affected platforms; e.g.:

```
./python.exe  ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2
/home/embray/src/python/test-worker/3.x.test-worker/build/python -u -W default -bb -E -W error::BytesWarning -m test -r -w -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2
Traceback (most recent call last):
  File "./Tools/scripts/run_tests.py", line 56, in <module>
    main(sys.argv[1:])
  File "./Tools/scripts/run_tests.py", line 52, in main
    os.execv(sys.executable, args)
PermissionError: [Errno 13] Permission denied
make: *** [Makefile:1073: buildbottest] Error 1
```

(cherry picked from commit 7a7693e9cb12e5571c76331db56a28eef9acb6e0)

Co-authored-by: E. M. Bray <erik.m.bray@gmail.com>
6 years agobpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-12053)
Miss Islington (bot) [Tue, 26 Feb 2019 16:48:52 +0000 (08:48 -0800)] 
bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-12053)

Use longer timeout for accept() in the server and block on accept in the client.
The client now only sets the timeout once the socket is connected.
(cherry picked from commit 53b9e1a1c1d86187ad6fbee492b697ef8be74205)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
6 years agobpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027) 12055/head
Miss Islington (bot) [Tue, 26 Feb 2019 07:10:54 +0000 (23:10 -0800)] 
bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027)

The standard math library (libm) may follow IEEE-754 recommendation to
include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x).
And this triggers a name clash, found by FreeBSD developer
Steve Kargl, who worken on putting sinpi into libm used on FreeBSD
(it has to be named "sinpi", not "sinPi", cf. e.g.
https://en.cppreference.com/w/c/experimental/fpext4).
(cherry picked from commit f57cd8288dbe6aba99c057f37ad6d58f8db75350)

Co-authored-by: Dima Pasechnik <dimpase@gmail.com>
6 years agoRun autoreconf. 12047/head
Benjamin Peterson [Tue, 26 Feb 2019 05:59:37 +0000 (21:59 -0800)] 
Run autoreconf.

6 years agocloses bpo-13497: Fix `broken nice` configure test. (GH-12041)
Miss Islington (bot) [Tue, 26 Feb 2019 05:59:14 +0000 (21:59 -0800)] 
closes bpo-13497: Fix `broken nice` configure test. (GH-12041)

Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`.

Fixing the test will prevent false positives with pedantic compilers like clang.
(cherry picked from commit 90c6facebd5666fec85f125ee2795b48b30319a4)

Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
6 years agobpo-24643: Fix "GH-define timezone _timezone" clashes on Windows (GH-12019)
Miss Islington (bot) [Tue, 26 Feb 2019 00:15:04 +0000 (16:15 -0800)] 
bpo-24643: Fix "GH-define timezone _timezone" clashes on Windows (GH-12019)

(cherry picked from commit 6673decfa0fb078f60587f5cb5e98460eea137c2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-35512: Resolve string target to patch.dict decorator during function call GHGH...
Miss Islington (bot) [Mon, 25 Feb 2019 21:17:16 +0000 (13:17 -0800)] 
bpo-35512: Resolve string target to patch.dict decorator during function call GHGH-12000 (#12021)

* Resolve string target to patch.dict during function call

* Add NEWS entry

* Remove unneeded call

* Restore original value for support.target and refactor assertions

* Add extra assertion to verify unpatched dict
(cherry picked from commit a875ea58b29fbf510f9790ae1653eeaa47dc0de8)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years ago[3.7] bpo-28450: Fix and improve the documentation for unknown escapes in RE. (GH... 12037/head
Serhiy Storchaka [Mon, 25 Feb 2019 16:28:53 +0000 (18:28 +0200)] 
[3.7] bpo-28450: Fix and improve the documentation for unknown escapes in RE. (GH-11920). (GH-12029)

(cherry picked from commit a180b007d96fe68b32f11dec720fbd0cd5b6758a)

6 years agoRemove empty Dictionaries section from programming FAQ (GH-12026)
Miss Islington (bot) [Mon, 25 Feb 2019 16:27:54 +0000 (08:27 -0800)] 
Remove empty Dictionaries section from programming FAQ (GH-12026)

(cherry picked from commit 55e335d7d59be44819c6b672d258e2d5feb1e633)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agoCorrect name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
Miss Islington (bot) [Mon, 25 Feb 2019 15:18:20 +0000 (07:18 -0800)] 
Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)

(cherry picked from commit d90a141bb947b68601f8d1f37bc98f7b524f0e01)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
6 years agocloses bpo-36083: Fix formatting of the manpage Synopsis. (GH-12017)
Miss Islington (bot) [Mon, 25 Feb 2019 00:56:13 +0000 (16:56 -0800)] 
closes bpo-36083: Fix formatting of the manpage Synopsis. (GH-12017)

More specifically, the options of --check-hash-based-pycs.
(cherry picked from commit 16323cb2c3d315e02637cebebdc5ff46be32ecdf)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
6 years agobpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12011)
Miss Islington (bot) [Sun, 24 Feb 2019 07:46:20 +0000 (23:46 -0800)] 
bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12011)

(cherry picked from commit aeca373b339e0ea9739536ce6b43bd90f3b89873)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-24310: Document IDLE settings dialog font tab sample (GH-12007)
Miss Islington (bot) [Sun, 24 Feb 2019 04:23:08 +0000 (20:23 -0800)] 
bpo-24310: Document IDLE settings dialog font tab sample (GH-12007)

(cherry picked from commit d610116a2e48b55788b62e11f2e6956af06b3de0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agofix _abc.c compile error on Cygwin (GH-8445)
Miss Islington (bot) [Sun, 24 Feb 2019 01:53:28 +0000 (17:53 -0800)] 
fix _abc.c compile error on Cygwin (GH-8445)

(cherry picked from commit abe5922743f62e130c4dad2f637274c38d6b1e8b)

Co-authored-by: E. M. Bray <erik.m.bray@gmail.com>
6 years agobpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)
Miss Islington (bot) [Fri, 22 Feb 2019 14:03:26 +0000 (06:03 -0800)] 
bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)

(cherry picked from commit a40681dd5db8deaf05a635eecb91498dac882aa4)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
6 years agoInclude the --prompt flag in venv's help output (GH-10711)
Miss Islington (bot) [Fri, 22 Feb 2019 11:14:08 +0000 (03:14 -0800)] 
Include the --prompt flag in venv's help output (GH-10711)

Document usage of the existing `--prompt` option in the command line help.
(cherry picked from commit 3208880f1c72800bacf94a2045fcb0436702c7a1)

Co-authored-by: Holger Frey <socials@holgerfrey.de>
6 years ago[3.7] Doc: Missing backquotes. (GH-11982) (GH-11985)
Julien Palard [Fri, 22 Feb 2019 08:56:06 +0000 (09:56 +0100)] 
[3.7] Doc: Missing backquotes. (GH-11982) (GH-11985)

(cherry picked from commit 6e240ddd0d06cca5da091144479b7db0637c73da)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agobpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)
Miss Islington (bot) [Fri, 22 Feb 2019 00:45:31 +0000 (16:45 -0800)] 
bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)

(cherry picked from commit e5458bdb6af81f9b98acecd8819c60016d3f1441)

Co-authored-by: Manjusaka <lizheao940510@gmail.com>
6 years agobpo-36060: Document how collections.ChainMap() determines iteration order (GH-11969...
Miss Islington (bot) [Thu, 21 Feb 2019 17:47:46 +0000 (09:47 -0800)] 
bpo-36060: Document how collections.ChainMap() determines iteration order (GH-11969) (GH-11978)

(cherry picked from commit 86f093f71a594dcaf21b67ba13dda72863e9bde9)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agoDocument other performance implication for __slots__ (GH-11974) (GH-11975)
Miss Islington (bot) [Thu, 21 Feb 2019 17:10:20 +0000 (09:10 -0800)] 
Document other performance implication for __slots__ (GH-11974) (GH-11975)

(cherry picked from commit 7463884f6993edcd92bec56213ee1959034fd31c)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ordered...
Miss Islington (bot) [Thu, 21 Feb 2019 08:18:51 +0000 (00:18 -0800)] 
bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ordered (GH-11966) (GH-#11972)

(cherry picked from commit 49fd6dd887df6ea18dbb1a3c0f599239ccd1cb42)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-33989: Ensure that ms.key_compare is always initialized in list_sort_impl()....
Miss Islington (bot) [Thu, 21 Feb 2019 08:05:22 +0000 (00:05 -0800)] 
bpo-33989: Ensure that ms.key_compare is always initialized in list_sort_impl(). (GH-8710)

(cherry picked from commit ebc793d6acb9650b9f497808e059805892031d74)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoDoc: fix example for iter() function. (GH-11959)
Miss Islington (bot) [Thu, 21 Feb 2019 07:59:28 +0000 (23:59 -0800)] 
Doc: fix example for iter() function. (GH-11959)

read() returns bytes for a file opened in binary mode,
so b'' should be used as a sentinel instead of ''.
Otherwise the loop will be infinite.
(cherry picked from commit 11fa0e48a958716186eb99348a46064e944eccf6)

Co-authored-by: Cristian Ciupitu <cristian.ciupitu@yahoo.com>
6 years agobpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) (GH-11961)
Miss Islington (bot) [Wed, 20 Feb 2019 22:23:29 +0000 (14:23 -0800)] 
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) (GH-11961)

https://bugs.python.org/issue31982
(cherry picked from commit 9b0c681e2d7e708a07e34d9c08e4424bdd4f5ebc)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11947)
Miss Islington (bot) [Tue, 19 Feb 2019 20:25:54 +0000 (12:25 -0800)] 
bpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11947)

https://bugs.python.org/issue35584
(cherry picked from commit 3bacf6126522a9b3bcb6be0c4f3ee6a895dfe772)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940)
Miss Islington (bot) [Tue, 19 Feb 2019 17:24:16 +0000 (09:24 -0800)] 
bpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940)

Fix test_ssl for strict OpenSSL configuration like RHEL8 strict crypto policy.
Use older TLS version for minimum TLS version of the server SSL context if
needed, to test TLS version older than default minimum TLS version.
(cherry picked from commit 3ef6344ee53f59ee86831ec36ed2c6f93a56229d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641)
Miss Islington (bot) [Tue, 19 Feb 2019 13:47:13 +0000 (05:47 -0800)] 
bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641)

`object.__new__` and `object.__init__` do take one argument each,
they just don't take extra user supplied arguments.

Patch by Sanyam Khurana.
(cherry picked from commit 5105483acb3aca318304bed056dcfd7e188fe4b5)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
6 years agoFix syntax warnings in tests introduced in bpo-35942. (GH-11934)
Miss Islington (bot) [Tue, 19 Feb 2019 12:16:36 +0000 (04:16 -0800)] 
Fix syntax warnings in tests introduced in bpo-35942. (GH-11934)

(cherry picked from commit 8d01eb49fc7ff914feeb2e2090d1d6ef15c932ab)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix a misnamed test for lists. (GH-11933)
Miss Islington (bot) [Tue, 19 Feb 2019 12:12:16 +0000 (04:12 -0800)] 
Fix a misnamed test for lists. (GH-11933)

(cherry picked from commit f522a57ec77921ee2e60bd4ccda3c8daa5a43e95)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)
Miss Islington (bot) [Tue, 19 Feb 2019 05:30:53 +0000 (21:30 -0800)] 
bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)

(cherry picked from commit ee0f927bd8dba805a04963dbec1ad49fe830b842)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-34572: change _pickle unpickling to use import rather than retrieving from sys...
Miss Islington (bot) [Mon, 18 Feb 2019 15:52:32 +0000 (07:52 -0800)] 
bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) (GH-11921)

Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
(cherry picked from commit 4371c0a9c0848f7a0947d43f26f234842b41efdf)

Co-authored-by: tjb900 <ozburgess@gmail.com>
6 years agobpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)
Miss Islington (bot) [Mon, 18 Feb 2019 13:48:23 +0000 (05:48 -0800)] 
bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)

Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases.

Also add a missing index in re.rst.
(cherry picked from commit 4a7f44a2ed49ff1e87db062e7177a56c6e4bbdb0)

Co-authored-by: animalize <animalize@users.noreply.github.com>
6 years agobpo-35942: Improve the error message if __fspath__ returns invalid types in path_conv...
Miss Islington (bot) [Mon, 18 Feb 2019 11:05:52 +0000 (03:05 -0800)] 
bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)

The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6085e18b534fd4161844ff39f77eb4a082)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)
Miss Islington (bot) [Sun, 17 Feb 2019 23:33:04 +0000 (15:33 -0800)] 
bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)

Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional.
(cherry picked from commit ac28147e78c45a6217d348ce90ca5281d91f676f)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)
Miss Islington (bot) [Fri, 15 Feb 2019 21:19:44 +0000 (13:19 -0800)] 
bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)

Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt.

This patch fixes this by pre-compiling the code before passing it to `Pdb.run`.

https://bugs.python.org/issue35931
(cherry picked from commit 4327705cfab3eb09073ec828570bbd8f789e1611)

Co-authored-by: Daniel Hahler <github@thequod.de>
6 years agoImprove readability of random module examples (GH-11884) (GH-11885)
Miss Islington (bot) [Fri, 15 Feb 2019 20:47:04 +0000 (12:47 -0800)] 
Improve readability of random module examples (GH-11884) (GH-11885)

Based on reviewer feedback from Allen Downey, convert ``lambda`` to ``def``.
(cherry picked from commit 9abb725cea7a1687b4d85ab9766ae6256a76a1ef)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agoFix the versionadded info for typing.NoReturn (GH-11880)
Miss Islington (bot) [Fri, 15 Feb 2019 19:31:28 +0000 (11:31 -0800)] 
Fix the versionadded info for typing.NoReturn (GH-11880)

The earliest version that `typing.NoReturn` appears in is [3.5.4rc1](https://docs.python.org/3/whatsnew/changelog.htmlGH-python-3-5-4-release-candidate-1)
(cherry picked from commit 903567e4f54494c2f4148eec0504ad761ac942c2)

Co-authored-by: Jack Wilsdon <jack.wilsdon@gmail.com>
6 years agobpo-36006: Fix versionchanged directive alignment in io module documentation (GH...
Miss Islington (bot) [Fri, 15 Feb 2019 19:09:38 +0000 (11:09 -0800)] 
bpo-36006: Fix versionchanged directive alignment in io module documentation (GH-11881)

https://bugs.python.org/issue36006
(cherry picked from commit 522630a7462f606300f1e6e6818de191d9dc3fdf)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
6 years agobpo-35746: Credit Colin Read and Nicolas Edet (GH-11864)
Victor Stinner [Fri, 15 Feb 2019 12:19:30 +0000 (13:19 +0100)] 
bpo-35746: Credit Colin Read and Nicolas Edet (GH-11864)

Add credit for the cert parser vulnerability. Mention also Cisco
TALOS-2018-0758 identifier.

6 years agobpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported...
Miss Islington (bot) [Fri, 15 Feb 2019 05:23:07 +0000 (21:23 -0800)] 
bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not supported (GH-11853)

https://bugs.python.org/issue35994
(cherry picked from commit 3e028b2d40370dc986b6f3146a7ae927bc119f97)

Co-authored-by: pxinwr <peixing.xin@windriver.com>
6 years agobpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH...
Miss Islington (bot) [Thu, 14 Feb 2019 23:45:20 +0000 (15:45 -0800)] 
bpo-30410: Documentation of sys.stdin/out/err update to reflect change in 3.6 (GH-10264)

Documentation of sys.stdin/out/err update to reflect change in 3.6 on Windows to use UTF-8.

Wording by Eryk Sun and Paul Moore.

https://bugs.python.org/issue30410
(cherry picked from commit 5723263a3a39a05b6a2f567e0e7771792e6e2f5b)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
6 years agobpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied...
Miss Islington (bot) [Thu, 14 Feb 2019 18:41:37 +0000 (10:41 -0800)] 
bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission denied" on AIX (GH-11424)

[bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)).

Not only a blocking IO error needs to be ignored - permission errors also need to be ignored.

p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb.

https://bugs.python.org/issue35633
(cherry picked from commit b94d4bed67c60834b1a5a0936b8c13934cf3b872)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>