summaryrefslogtreecommitdiffstats
path: root/Lib/formatter.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-03-27 16:56:57 (GMT)
committerBrett Cannon <brett@python.org>2015-03-27 16:56:57 (GMT)
commit781692ff6af7747948b956eca9b435c9c93c3407 (patch)
tree4543dfed1935fa2aaf375db711c8a4b76c07f2dc /Lib/formatter.py
parent79644f9c83b3cd992c16c6e1bd6c7a5fd49f24c0 (diff)
downloadcpython-781692ff6af7747948b956eca9b435c9c93c3407.zip
cpython-781692ff6af7747948b956eca9b435c9c93c3407.tar.gz
cpython-781692ff6af7747948b956eca9b435c9c93c3407.tar.bz2
Fix module deprecation warnings to have a useful stacklevel
Diffstat (limited to 'Lib/formatter.py')
-rw-r--r--Lib/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/formatter.py b/Lib/formatter.py
index cc2f4ad..5e8e2ff 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', DeprecationWarning)
+ 'Python 3.6', DeprecationWarning, stacklevel=2)
AS_IS = None