diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-29 01:14:31 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-29 01:14:31 +0000 |
commit | 14f7a4f8098b75ba5d39e7e9e1751fda3a1c2904 (patch) | |
tree | 11276c27b4335eaff4b285773b8be236542b686a | |
parent | ef4362c61664f824a916b76fdb281ba24582abd4 (diff) | |
download | portage-14f7a4f8098b75ba5d39e7e9e1751fda3a1c2904.tar.gz portage-14f7a4f8098b75ba5d39e7e9e1751fda3a1c2904.tar.bz2 portage-14f7a4f8098b75ba5d39e7e9e1751fda3a1c2904.zip |
Use dict.pop(k, None) to delete items if they exist.
svn path=/main/trunk/; revision=4551
-rwxr-xr-x | bin/emerge | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge index af6d552f0..6e2b3c883 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3470,8 +3470,7 @@ def action_build(settings, trees, mtimedb, myresumeopts = dict([(k,True) for k in mtimedb["resume"]["myopts"]]) for opt in ("--skipfirst", "--ask", "--tree"): - if opt in myresumeopts: - del myresumeopts[opt] + myresumeopts.pop(opt, None) for myopt, myarg in myopts.iteritems(): if myopt not in myresumeopts: |