summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/macresource.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-mac/macresource.py')
-rw-r--r--Lib/plat-mac/macresource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/macresource.py b/Lib/plat-mac/macresource.py
index f68ecdc..d5839a1 100644
--- a/Lib/plat-mac/macresource.py
+++ b/Lib/plat-mac/macresource.py
@@ -48,7 +48,7 @@ def need(restype, resid, filename=None, modname=None):
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__)]