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).
This commit is contained in:
Neal Norwitz 2006-08-20 16:25:10 +00:00
parent 0da7e03e12
commit f1a69c1666
16 changed files with 109 additions and 112 deletions

View file

@ -144,7 +144,7 @@ def search_function(encoding):
pass
else:
for alias in codecaliases:
if not _aliases.has_key(alias):
if alias not in _aliases:
_aliases[alias] = modname
# Return the registry entry