summaryrefslogtreecommitdiff
path: root/Lib/plat-mac/EasyDialogs.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-14 17:42:17 +0000
committerBenjamin Peterson <benjamin@python.org>2008-07-14 17:42:17 +0000
commita6864e0d9f1fc06c50db36ed913ac48a3d2ddde5 (patch)
treef853e23de122608a11ef632a60de6ddf7cdffd82 /Lib/plat-mac/EasyDialogs.py
parent2ee623b7109cbbc22aaea9eb934f8aa993355a89 (diff)
downloadcpython-git-a6864e0d9f1fc06c50db36ed913ac48a3d2ddde5.tar.gz
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/plat-mac/EasyDialogs.py')
-rw-r--r--Lib/plat-mac/EasyDialogs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py
index f3d7e78cd4..4c64839ed2 100644
--- a/Lib/plat-mac/EasyDialogs.py
+++ b/Lib/plat-mac/EasyDialogs.py
@@ -19,7 +19,7 @@ Based upon STDWIN dialogs with the same names and functions.
"""
from warnings import warnpy3k
-warnpy3k("In 3.x, the EasyDialogs module is removed.")
+warnpy3k("In 3.x, the EasyDialogs module is removed.", stacklevel=2)
from Carbon.Dlg import GetNewDialog, SetDialogItemText, GetDialogItemText, ModalDialog
from Carbon import Qd