[Python-checkins] cpython: Issue #19165: The formatter module graduates to full deprecation.

brett.cannon python-checkins at python.org
Fri Mar 21 15:52:20 CET 2014


http://hg.python.org/cpython/rev/455e5385752a
changeset:   89899:455e5385752a
user:        Brett Cannon <brett at python.org>
date:        Fri Mar 21 10:52:33 2014 -0400
summary:
  Issue #19165: The formatter module graduates to full deprecation.

files:
  Doc/whatsnew/3.5.rst |  3 ++-
  Lib/formatter.py     |  2 +-
  Misc/NEWS            |  3 +++
  3 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -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 --git a/Lib/formatter.py b/Lib/formatter.py
--- a/Lib/formatter.py
+++ b/Lib/formatter.py
@@ -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 --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list