diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-05-13 09:32:20 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-05-13 09:32:20 (GMT) |
commit | 2f3742b0d8dbe025f2f9e496938a6d344e6881ad (patch) | |
tree | 480fc929c731bf5081552dec4e3ff730144c82fa /Doc | |
parent | de7cafaa63db3849d11b1d17195ee23eacad7325 (diff) | |
download | cpython-2f3742b0d8dbe025f2f9e496938a6d344e6881ad.zip cpython-2f3742b0d8dbe025f2f9e496938a6d344e6881ad.tar.gz cpython-2f3742b0d8dbe025f2f9e496938a6d344e6881ad.tar.bz2 |
Issue #1322: platform.dist() and platform.linux_distribution() functions are now deprecated.
Initial patch by Vajrasky Kok.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/platform.rst | 4 | ||||
-rw-r--r-- | Doc/whatsnew/3.5.rst | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/platform.rst b/Doc/library/platform.rst index e27f2ad..679cc6b 100644 --- a/Doc/library/platform.rst +++ b/Doc/library/platform.rst @@ -247,6 +247,8 @@ Unix Platforms This is another name for :func:`linux_distribution`. + .. deprecated-removed:: 3.5 3.7 + .. function:: linux_distribution(distname='', version='', id='', supported_dists=('SuSE','debian','redhat','mandrake',...), full_distribution_name=1) Tries to determine the name of the Linux OS distribution name. @@ -263,6 +265,8 @@ Unix Platforms parameters. ``id`` is the item in parentheses after the version number. It is usually the version codename. + .. deprecated-removed:: 3.5 3.7 + .. function:: libc_ver(executable=sys.executable, lib='', version='', chunksize=2048) Tries to determine the libc version against which the file executable (defaults diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index a29ff10..b788365 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -700,6 +700,11 @@ Deprecated Python modules, functions and methods :meth:`~string.Formatter.format` method of the :class:`string.Formatter` class has been deprecated. +* :func:`platform.dist` and :func:`platform.linux_distribution` functions are + now deprecated and will be removed in Python 3.7. Linux distributions use + too many different ways of describing themselves, so the functionality is + left to a package. + (Contributed by Vajrasky Kok and Berker Peksag in :issue:`1322`.) Deprecated functions and types of the C API ------------------------------------------- |