mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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.
This commit is contained in:
parent
2ec1bee1b3
commit
8d8221f0d6
4 changed files with 10 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue