diff options
-rw-r--r-- | Doc/whatsnew/3.5.rst | 3 | ||||
-rw-r--r-- | Lib/formatter.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index dfd1bea..f11291b 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -165,7 +165,8 @@ Unsupported Operating Systems 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 --git a/Lib/formatter.py b/Lib/formatter.py index d8cca52..769bd6a 100644 --- a/Lib/formatter.py +++ b/Lib/formatter.py @@ -21,7 +21,7 @@ manage and inserting data into the output. 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 @@ -23,6 +23,9 @@ Core and Builtins 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. |