From 7ff6cef4e4c0f3532471a60fa5deb3d7dcdd8a53 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 13 Sep 2006 20:50:28 +0000 Subject: [PATCH] Use configdict["env"].clear() instead of manual deletion because the result is the same and it's much more efficient. svn path=/main/trunk/; revision=4442 --- pym/portage.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index 821edb81f..3d8acf3ae 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1349,10 +1349,7 @@ class config: def reset(self,keeping_pkg=0,use_cache=1): "reset environment to original settings" - for x in self.configlist[-1].keys(): - if x not in self.backupenv.keys(): - del self.configlist[-1][x] - + self.configdict["env"].clear() self.configdict["env"].update(self.backupenv) self.modifiedkeys = [] -- 2.26.2