summaryrefslogtreecommitdiffstats
path: root/Lib/mimetools.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-14 17:42:17 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-14 17:42:17 (GMT)
commita6864e0d9f1fc06c50db36ed913ac48a3d2ddde5 (patch)
treef853e23de122608a11ef632a60de6ddf7cdffd82 /Lib/mimetools.py
parent2ee623b7109cbbc22aaea9eb934f8aa993355a89 (diff)
downloadcpython-a6864e0d9f1fc06c50db36ed913ac48a3d2ddde5.zip
cpython-a6864e0d9f1fc06c50db36ed913ac48a3d2ddde5.tar.gz
cpython-a6864e0d9f1fc06c50db36ed913ac48a3d2ddde5.tar.bz2
fix test_py3kwarns
The fact that this was failing and went unnoticed so long seems like a good argument for being able to enable and disble py3kwarnings through Python.
Diffstat (limited to 'Lib/mimetools.py')
-rw-r--r--Lib/mimetools.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py
index 5dd5396..02963b5 100644
--- a/Lib/mimetools.py
+++ b/Lib/mimetools.py
@@ -6,7 +6,8 @@ import rfc822
import tempfile
from warnings import warnpy3k
-warnpy3k("in 3.x, mimetools has been removed in favor of the email package")
+warnpy3k("in 3.x, mimetools has been removed in favor of the email package",
+ stacklevel=2)
__all__ = ["Message","choose_boundary","encode","decode","copyliteral",
"copybinary"]