From: Zac Medico Date: Wed, 11 Jul 2007 04:54:03 +0000 (-0000) Subject: Use set.discard() instead of remove() to avoid a potential KeyError. X-Git-Tag: v2.2_pre1~1041 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=103998514c912a60739debee514a17c50a5584b3;p=portage.git Use set.discard() instead of remove() to avoid a potential KeyError. svn path=/main/trunk/; revision=7230 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index f93e93adc..b5c05c63e 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -351,9 +351,9 @@ def create_depgraph_params(myopts, myaction): myparams.add("selective") if "--emptytree" in myopts: myparams.add("empty") - myparams.remove("selective") + myparams.discard("selective") if "--nodeps" in myopts: - myparams.remove("recurse") + myparams.discard("recurse") if "--deep" in myopts: myparams.add("deep") return myparams