diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-04-24 00:32:24 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-04-24 00:32:24 (GMT) |
commit | 8d8221f0d674ea032337a82d1ad1d0d146510390 (patch) | |
tree | 81da342bdff869dcbf2b9d1466a1d553e4bc5aec /Lib/platform.py | |
parent | 2ec1bee1b30a14a2fc8272e3bf304186d0474fe3 (diff) | |
download | cpython-8d8221f0d674ea032337a82d1ad1d0d146510390.zip cpython-8d8221f0d674ea032337a82d1ad1d0d146510390.tar.gz cpython-8d8221f0d674ea032337a82d1ad1d0d146510390.tar.bz2 |
Issue #26041: Remove "will be removed in Python 3.7" from description messages
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 042d39a..ff036e3 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -303,8 +303,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 and will be removed in Python 3.7", - PendingDeprecationWarning, stacklevel=2) + "in Python 3.5", PendingDeprecationWarning, stacklevel=2) return _linux_distribution(distname, version, id, supported_dists, full_distribution_name) @@ -378,8 +377,7 @@ def dist(distname='', version='', id='', """ import warnings warnings.warn("dist() and linux_distribution() functions are deprecated " - "in Python 3.5 and will be removed in Python 3.7", - PendingDeprecationWarning, stacklevel=2) + "in Python 3.5", PendingDeprecationWarning, stacklevel=2) return _linux_distribution(distname, version, id, supported_dists=supported_dists, full_distribution_name=0) |