diff options
author | Brett Cannon <brett@python.org> | 2014-03-21 14:52:33 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-03-21 14:52:33 (GMT) |
commit | a77d0c36e561c3f56dee1c4b0fdd9451d6f8a894 (patch) | |
tree | 9857bb7e775dae53c9e28bbc15491c99c571f125 | |
parent | 9ab748013b00d6873b07c15ce50927104f5ece63 (diff) | |
download | cpython-a77d0c36e561c3f56dee1c4b0fdd9451d6f8a894.zip cpython-a77d0c36e561c3f56dee1c4b0fdd9451d6f8a894.tar.gz cpython-a77d0c36e561c3f56dee1c4b0fdd9451d6f8a894.tar.bz2 |
Issue #19165: The formatter module graduates to full deprecation.
-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. |