Silence DeprecationWarnings from uses of has_key and <> in plat-mac.
diff --git a/Lib/plat-mac/macresource.py b/Lib/plat-mac/macresource.py
index d693c87..3b48d4b 100644
--- a/Lib/plat-mac/macresource.py
+++ b/Lib/plat-mac/macresource.py
@@ -51,7 +51,7 @@
if modname == '__main__':
# If we're main we look in the current directory
searchdirs = [os.curdir]
- if sys.modules.has_key(modname):
+ if modname in sys.modules:
mod = sys.modules[modname]
if hasattr(mod, '__file__'):
searchdirs = [os.path.dirname(mod.__file__)]