mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
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:
parent
0da7e03e12
commit
f1a69c1666
16 changed files with 109 additions and 112 deletions
|
@ -207,7 +207,7 @@ def remove_tree (directory, verbose=0, dry_run=0):
|
|||
cmd[0](cmd[1])
|
||||
# remove dir from cache if it's already there
|
||||
abspath = os.path.abspath(cmd[1])
|
||||
if _path_created.has_key(abspath):
|
||||
if abspath in _path_created:
|
||||
del _path_created[abspath]
|
||||
except (IOError, OSError), exc:
|
||||
log.warn(grok_environment_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue