Commit Graph

103539 Commits

Author SHA1 Message Date
Miss Skeleton (bot) dd81b7adce
Update URL in macOS installer copy of license (GH-16905)
(cherry picked from commit 01659ca62c)

Co-authored-by: Ned Deily <nad@python.org>
2019-10-23 13:27:22 -07:00
Miss Skeleton (bot) 2e7eaf9ff0 Spell Bitbucket correctly. (GH-16862) (GH-16899)
(cherry picked from commit d34ac30532)

Co-authored-by: Peter Bittner <django@bittner.it>
2019-10-23 14:45:09 +03:00
Miss Skeleton (bot) b102e4f052
bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)
Fix stdatomic.h header check for ICC compiler: the ICC implementation
lacks atomic_uintptr_t type which is needed by Python.

Test:

* atomic_int and atomic_uintptr_t types
* atomic_load_explicit() and atomic_store_explicit()
* memory_order_relaxed and memory_order_seq_cst constants

But don't test ATOMIC_VAR_INIT(): it's not used in Python.
(cherry picked from commit 028f7349a0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2019-10-22 13:17:21 -07:00
Miss Skeleton (bot) d4dc4a58f5
Fix Zope URL (GH-16880)
(cherry picked from commit dfe726b1ac)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2019-10-22 02:49:32 -07:00
Serhiy Storchaka 928c68eee6
bpo-38540: Revert a warning if PY_SSIZE_T_CLEAN is not defined. (GH-16876) 2019-10-21 21:41:09 +03:00
Miss Skeleton (bot) 175abccbbf
bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)
(cherry picked from commit 10ecbadb79)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-21 11:12:17 -07:00
Miss Skeleton (bot) 3dec84f40e
bpo-38540: Fix possible leak in PyArg_Parse for "esGH-" and "etGH-". (GH-16869)
(cherry picked from commit 5bc6a7c06e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-21 01:56:50 -07:00
Miss Islington (bot) e945052e07
Remove doc reference to unmaitained Nose package (GH-16849)
The Nose package is no longer maintained.
(cherry picked from commit 88eeda6311)

Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
2019-10-19 12:29:20 -07:00
Miss Islington (bot) 82b5f6b16e
bpo-27657: Fix urlparse() with numeric paths (GH-661)
* bpo-27657: Fix urlparse() with numeric paths

Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.

* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.
(cherry picked from commit 5a88d50ff0)

Co-authored-by: Tim Graham <timograham@gmail.com>
2019-10-18 06:24:28 -07:00
Victor Stinner 1bceb0e589
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) (GH-16818)
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.

Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.

TLSv1.3 was disabled for the test: reenable it.

(cherry picked from commit fab4ef2df0)
2019-10-16 11:44:30 +02:00
Miss Islington (bot) 5ff8e2dfbe
Update doc switcher list for 3.8.0 (GH-16809)
(cherry picked from commit 3f36043db2)

Co-authored-by: Ned Deily <nad@python.org>
2019-10-15 14:31:51 -07:00
Miss Islington (bot) 079a1e6307
Typo fix - implemention should be implementation (GH-16806)
(cherry picked from commit 2798b60c55)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-15 14:07:40 -07:00
Ned Deily e48589d265 Post release updates 2019-10-15 03:28:42 -04:00
Ned Deily 1f187714be Python 3.7.5
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAl2k+McACgkQLTR+pqpl
 Qh3v2xAAgF1LyLY/T9nqtWGsbnTLsFSINUpeLS9g2ccrxA2iBq8rs6BcQ6FhZpRS
 y1PHRnnEwqNYDvRyo9HmfAjUb2uqXDSEO6SbEkp38GkU1kh2Vubyp8DENF0M6UH3
 hOTWBEpXof9PTqXXM9nNf/D556HoBt31FJcyHV6SCteF8pbkmMdNM+kfuP1BP1RI
 LLYg/EvH21C/Y0Dutmgo62yt+2mOsJH8gqL14WP93fFRrnoW4TsgYqbQXUC3IaVV
 G6pp5EMWZ6s3M7rWSyNMSs00fV0Rh/CUJimUwk0JmmJdYdrmC0aUkXbMFOcmGS/C
 fK8YlwagB4R6RnHjEScoZlVoQSqQOMOJpEyIZYZ4rb4FqgTGS1R7weFbya7kAmma
 1x4WhN/U0OOi7G1btLyNis9yz4I1ho2PNIWnuozOqSJ04NMm6bGYsdHvWpawmQTg
 01Ndh5EhXYlIneFKkW2fewGqY/HrACNEXMS8VqC6Bgm8h+quUXyzOxsUB3ErP50+
 gGIDzBEajZg22Z+Ei3+bD0z2t6v7wfa3JiS52oQBfPTCDHXyHBDl6YQqcR3A5emR
 rPJp4ix0jo74KPq7+WOoBvriEaUsUzj/G6j8MvaTLIpr07Vn83dVyXPEFgkozFl5
 L/cSxDzoFTkuScsdLlb6bbpEBO9wo+7fnZApBt3WjdhsrtxDzMg=
 =Ro62
 -----END PGP SIGNATURE-----

Merge tag 'v3.7.5' into 3.7
2019-10-15 03:15:46 -04:00
Ned Deily 5c02a39a0b 3.7.5 2019-10-14 18:32:36 -04:00
Miss Islington (bot) 796e8c83e9 Doc: 3.8 is now stable. (GH-16790) (GH-16792)
(cherry picked from commit 4504b4500d)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-10-14 18:19:51 -04:00
Ned Deily 0365d51156 Fix some news entries for 3.7.5 final. 2019-10-14 18:00:26 -04:00
Ned Deily 8948bde026 [3.7] Update build docs for macOS (GH-16771) (GH-16774) 2019-10-14 17:29:51 -04:00
Ned Deily d6c1cc2efa [3.7] Update macOS installer display files for 3.7.5 (GH-16767) 2019-10-14 17:29:27 -04:00
Miss Islington (bot) bd9a70c2c1 bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).

https://bugs.python.org/issue28556
(cherry picked from commit 8144095707)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
2019-10-14 17:29:02 -04:00
Abhilash Raj 2a405598bb [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727)
Reverts GH-15687 which caused the issue.


https://bugs.python.org/issue22347

https://bugs.python.org/issue38449
2019-10-14 17:27:49 -04:00
Miss Islington (bot) c16897cd9e Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720) 2019-10-14 17:22:18 -04:00
Zachary Ware b6029f9a59 Update badges in README.rst (GH-16710)
We no longer use AppVeyor in 3.x, and others were still pointed at master.
2019-10-14 17:21:38 -04:00
Miss Islington (bot) 49d7428c26 Typo fix: "throuhgh" should be "through". (GH-16704)
(cherry picked from commit a8e0d3141e)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-14 17:19:12 -04:00
Miss Islington (bot) 49e650b248 bpo-32996: Documentation fix-up. (GH-16646)
PR GH-4906 changed the typing.Generic class hierarchy, leaving an
outdated comment in the library reference. User-defined Generic ABCs now
must get a abc.ABCMeta metaclass from something other than typing.Generic
inheritance.
(cherry picked from commit d47f0dd2e8)

Co-authored-by: M. Eric Irrgang <mei2n@virginia.edu>
2019-10-14 17:18:08 -04:00
Miss Islington (bot) 42b16b2a86 bpo-36953: Delay removal of ABCs from collections. (GH-13409)
Bump the removal to 3.9, indicate collections.abc available since 3.3,
replace version-changed directive to deprecated-removed.

https://bugs.python.org/issue36953
(cherry picked from commit eea47e0939)

Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu>
2019-10-14 17:04:26 -04:00
Vinay Sajip 1c61f2cc7a bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672)
(cherry picked from commit e8bedbddad)
2019-10-14 17:03:10 -04:00
Miss Islington (bot) 918f0c4a71 Typo fix: "empy" should be "empty". (GH-16666)
(cherry picked from commit 01171ebd96)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-14 17:01:39 -04:00
Ricardo Bánffy ae41f629e1 [3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442) (GH-16647)
Prior to 3.7, re.escape escaped many characters that don't have
special meaning in Python, but that use to require escaping in other
tools and languages. This commit aims to make it clear which characters
were, but are no longer escaped.
(cherry picked from commit 15ae75d660)
2019-10-14 17:00:49 -04:00
Miss Islington (bot) 89f35fa9e7 Fix typo in _warnings.warn_explicit() docstring (GH-16625)
(cherry picked from commit 5dfbb4d503)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-14 16:57:27 -04:00
Miss Islington (bot) ab22c8bc48 bpo-38344: Fix syntax in activate.bat (GH-16533)
(cherry picked from commit e310af9e29)

Co-authored-by: James Abel <j@abel.co>
2019-10-14 16:56:12 -04:00
Miss Islington (bot) e9c65b4ae7 bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
(cherry picked from commit 038503e08a)

Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
2019-10-14 16:54:26 -04:00
Miss Islington (bot) f168c17b07 bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588)
The `required` argument to `argparse.add_subparsers` was added in GH-3027. This PR specifies the earliest version of Python where it is available.

https://bugs.python.org/issue26510

Automerge-Triggered-By: @merwok
(cherry picked from commit 9e71917e02)

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2019-10-14 16:53:27 -04:00
Miss Islington (bot) 6eb5545832 bpo-38235: Correct some arguments names in logging documentation (GH-16571) (GH-16577)
(cherry picked from commit 3142c667b5)

Co-authored-by: Ashley Whetter <AWhetter@users.noreply.github.com>
2019-10-14 16:50:11 -04:00
Miss Islington (bot) 88204a3908 bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
(cherry picked from commit b23a8423a9)

Co-authored-by: idomic <michael.ido@gmail.com>
2019-10-14 16:48:16 -04:00
Ned Deily d1e05689a9
[3.7] Update build docs for macOS (GH-16771) (GH-16774) 2019-10-14 09:27:03 -04:00
Ned Deily c60bed3258
[3.7] Update macOS installer display files for 3.7.5 (GH-16767) 2019-10-14 04:38:13 -04:00
Miss Islington (bot) 20d1f49a00
bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this).

https://bugs.python.org/issue28556
(cherry picked from commit 8144095707)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
2019-10-13 09:58:59 -07:00
Abhilash Raj 164bee296a [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727)
Reverts GH-15687 which caused the issue.


https://bugs.python.org/issue22347

https://bugs.python.org/issue38449
2019-10-12 11:50:03 -07:00
Miss Islington (bot) febe359559
bpo-38332: Catch KeyError from unknown cte in encoded-word. (GH-16503)
KeyError should cause a failure in parsing the encoded word and should be caught and raised as a _InvalidEWError instead.
(cherry picked from commit 65dcc8a8dc)

Co-authored-by: Andrei Troie <andreitroie90@gmail.com>
2019-10-12 10:02:23 -07:00
Miss Islington (bot) cb580d6fa8
bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525)
Add SMTPNotSupportedError in the exports of smtplib

Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit 3faf826e58)

Co-authored-by: nde <denayer.norman@gmail.com>
2019-10-12 09:26:04 -07:00
Pablo Galindo 193366e25c [3.7] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16663)
The implementation of weakref.proxy's methods call back into the Python
API using a borrowed references of the weakly referenced object
(acquired via PyWeakref_GET_OBJECT). This API call may delete the last
reference to the object (either directly or via GC), leaving a dangling
pointer, which can be subsequently dereferenced.

To fix this, claim a temporary ownership of the referenced object when
calling the appropriate method. Some functions because at the moment they
do not need to access the borrowed referent, but to protect against
future changes to these functions, ownership need to be fixed in
all potentially affected methods..
(cherry picked from commit 10cd00a9e3)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>





https://bugs.python.org/issue38395
2019-10-11 13:28:49 -07:00
Miss Islington (bot) 1845997dd9 Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720) 2019-10-11 10:27:16 -07:00
Zachary Ware dd63ee26a8
Update badges in README.rst (GH-16710)
We no longer use AppVeyor in 3.x, and others were still pointed at master.
2019-10-11 11:30:37 -05:00
Victor Stinner ed189ce494
bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536) (GH-16719)
pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively.

(cherry picked from commit 2b7dc40b2a)
2019-10-11 17:36:56 +02:00
Miss Islington (bot) 08afed7605
Typo fix: "throuhgh" should be "through". (GH-16704)
(cherry picked from commit a8e0d3141e)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2019-10-10 21:01:33 -07:00
Miss Islington (bot) f5ed41c1ae bpo-38109: Add missing constants to Lib/stat.py (GH-16665) (GH-16691)
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT,
stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to
the Python implementation of the stat module.
(cherry picked from commit 7bb14316b8)

Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
2019-10-10 15:50:38 +02:00
Miss Islington (bot) ca012360b1
bpo-32996: Documentation fix-up. (GH-16646)
PR GH-4906 changed the typing.Generic class hierarchy, leaving an
outdated comment in the library reference. User-defined Generic ABCs now
must get a abc.ABCMeta metaclass from something other than typing.Generic
inheritance.
(cherry picked from commit d47f0dd2e8)

Co-authored-by: M. Eric Irrgang <mei2n@virginia.edu>
2019-10-10 04:17:05 -07:00
Miss Islington (bot) d27a9b1695
bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688)
(cherry picked from commit a05fcd3c7a)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2019-10-10 01:00:41 -07:00
Zachary Ware a774ac6637
[3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686)
(cherry picked from commit 09895c27cd)
2019-10-09 16:56:07 -05:00