diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-05-15 17:30:06 (GMT) |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2018-05-15 17:30:06 (GMT) |
commit | f4fdb619ddb5b00178c79c2b90adc45075b5f17d (patch) | |
tree | 2b77f1812f874e37f5ad74e588647c7e6d796e0b /Lib/platform.py | |
parent | 6bd0c476c58ca0046969f70dc2a4e4dfb3268062 (diff) | |
download | cpython-f4fdb619ddb5b00178c79c2b90adc45075b5f17d.zip cpython-f4fdb619ddb5b00178c79c2b90adc45075b5f17d.tar.gz cpython-f4fdb619ddb5b00178c79c2b90adc45075b5f17d.tar.bz2 |
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) (GH-6862)
Also bump PendingDeprecationWarning to DeprecationWarning.
(cherry picked from commit 9eb40bc38de83e6ad3fad1931bba1cd36ae88c24)
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index dc981ec..20f9817 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -302,7 +302,7 @@ def linux_distribution(distname='', version='', id='', full_distribution_name=1): import warnings warnings.warn("dist() and linux_distribution() functions are deprecated " - "in Python 3.5", PendingDeprecationWarning, stacklevel=2) + "in Python 3.5", DeprecationWarning, stacklevel=2) return _linux_distribution(distname, version, id, supported_dists, full_distribution_name) @@ -376,7 +376,7 @@ def dist(distname='', version='', id='', """ import warnings warnings.warn("dist() and linux_distribution() functions are deprecated " - "in Python 3.5", PendingDeprecationWarning, stacklevel=2) + "in Python 3.5", DeprecationWarning, stacklevel=2) return _linux_distribution(distname, version, id, supported_dists=supported_dists, full_distribution_name=0) @@ -1345,7 +1345,7 @@ def platform(aliased=0, terse=0): 'ignore', r'dist\(\) and linux_distribution\(\) ' 'functions are deprecated .*', - PendingDeprecationWarning, + DeprecationWarning, ) distname, distversion, distid = dist('') if distname and not terse: |