diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-07-14 17:42:17 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-07-14 17:42:17 (GMT) |
| commit | a6864e0d9f1fc06c50db36ed913ac48a3d2ddde5 (patch) | |
| tree | f853e23de122608a11ef632a60de6ddf7cdffd82 /Lib/plat-mac/macresource.py | |
| parent | 2ee623b7109cbbc22aaea9eb934f8aa993355a89 (diff) | |
| download | cpython-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/plat-mac/macresource.py')
| -rw-r--r-- | Lib/plat-mac/macresource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/macresource.py b/Lib/plat-mac/macresource.py index 0a66d76..f02453b 100644 --- a/Lib/plat-mac/macresource.py +++ b/Lib/plat-mac/macresource.py @@ -1,7 +1,7 @@ """macresource - Locate and open the resources needed for a script.""" from warnings import warnpy3k -warnpy3k("In 3.x, the macresource module is removed.") +warnpy3k("In 3.x, the macresource module is removed.", stacklevel=2) from Carbon import Res import os |
