diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-20 16:25:10 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-20 16:25:10 +0000 |
commit | f1a69c16665c6c031c4723e5bc3e6d6f4118fa5e (patch) | |
tree | cf6ab6722fd4419721519ab7cf5f02d1d981a359 /Lib/plat-mac/macresource.py | |
parent | 0da7e03e12abd760085bd7e76df617d69fd94822 (diff) | |
download | cpython-git-f1a69c16665c6c031c4723e5bc3e6d6f4118fa5e.tar.gz |
Get rid of a bunch more has_key() uses. We *really* need a tool for this.
test_aepack now passes. IDLE still needs to be converted (among others).
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 f68ecdc8a8..d5839a11df 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__)] |