commit | a6864e0d9f1fc06c50db36ed913ac48a3d2ddde5 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Jul 14 17:42:17 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Jul 14 17:42:17 2008 +0000 |
tree | f853e23de122608a11ef632a60de6ddf7cdffd82 | |
parent | 2ee623b7109cbbc22aaea9eb934f8aa993355a89 [diff] [blame] |
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.
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py index b3138bd..5fc16f0 100644 --- a/Lib/plat-mac/pimp.py +++ b/Lib/plat-mac/pimp.py
@@ -14,7 +14,7 @@ """ from warnings import warnpy3k -warnpy3k("In 3.x, the pimp module is removed.") +warnpy3k("In 3.x, the pimp module is removed.", stacklevel=2) import sys import os