Author berker.peksag
Recipients benjamin.peterson, berker.peksag, bgomes, christian.heimes, doko, draghuram, eric.araujo, georg.brandl, lemburg, pavel.vinogradov, pola, sapetnioc, vajrasky, vstinner, zooko
Date 2014-08-06.04:49:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's an updated patch (based on Vajrasky's patch, thanks!).


- Updated deprecation schedule
  1. pending deprecation in 3.5
  2. deprecation in 3.6
  3. removal in 3.7
- Added tests
- Added a whatsnew entry
- Moved warnings import to dist() and linux_distribution() functions
- Used a deprecate-removed directive in the documentation (see also issue 22150)
- Fixed a stacklevel bug. With deprecate_platform_dist_v2.patch the output of platform.dist() was:

  >>> import platform as p
  >>> p.dist()
  /home/berker/projects/cpython/default/Lib/ PendingDeprecationWarning: The dist()/linux_distribution() function will be deprecated in Python 3.5 and removed in Python 3.6
  ('debian', 'wheezy/sid', '')

  With the current patch:

  >>> import platform as p
  >>> p.dist()
  __main__:1: PendingDeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5 and will be removed in Python 3.6
  ('debian', 'wheezy/sid', '')
Date User Action Args
2014-08-06 04:49:23berker.peksagsetrecipients: + berker.peksag, lemburg, georg.brandl, doko, zooko, vstinner, draghuram, christian.heimes, sapetnioc, benjamin.peterson, pavel.vinogradov, bgomes, eric.araujo, pola, vajrasky
2014-08-06 04:49:22berker.peksagsetmessageid: <>
2014-08-06 04:49:22berker.peksaglinkissue1322 messages
2014-08-06 04:49:22berker.peksagcreate