(original) (raw)
changeset: 89899:455e5385752a user: Brett Cannon brett@python.org date: Fri Mar 21 10:52:33 2014 -0400 files: Doc/whatsnew/3.5.rst Lib/formatter.py Misc/NEWS description: Issue #19165: The formatter module graduates to full deprecation. diff -r e266525c9294 -r 455e5385752a Doc/whatsnew/3.5.rst --- a/Doc/whatsnew/3.5.rst Fri Mar 21 06:38:46 2014 -0700 +++ b/Doc/whatsnew/3.5.rst Fri Mar 21 10:52:33 2014 -0400 @@ -165,7 +165,8 @@ Deprecated Python modules, functions and methods ------------------------------------------------ -* None yet. +* The :mod:`formatter` module has now graduated to full deprecation and is still + slated for removal in Python 3.6. Deprecated functions and types of the C API diff -r e266525c9294 -r 455e5385752a Lib/formatter.py --- a/Lib/formatter.py Fri Mar 21 06:38:46 2014 -0700 +++ b/Lib/formatter.py Fri Mar 21 10:52:33 2014 -0400 @@ -21,7 +21,7 @@ import sys import warnings warnings.warn('the formatter module is deprecated and will be removed in ' - 'Python 3.6', PendingDeprecationWarning) + 'Python 3.6', DeprecationWarning) AS_IS = None diff -r e266525c9294 -r 455e5385752a Misc/NEWS --- a/Misc/NEWS Fri Mar 21 06:38:46 2014 -0700 +++ b/Misc/NEWS Fri Mar 21 10:52:33 2014 -0400 @@ -23,6 +23,9 @@ Library ------- +- Issue #19165: The formatter module now raises DeprecationWarning instead of + PendingDeprecationWarning. + - Issue #13936: Remove the ability of datetime.time instances to be considered false in boolean contexts. /brett@python.org