public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH 1/3] Use 'in' instead of deprecated has_key()
@ 2012-12-30  3:27 Matt Turner
  2012-12-30  3:27 ` [gentoo-catalyst] [PATCH 2/3] " Matt Turner
  2012-12-30  3:27 ` [gentoo-catalyst] [PATCH 3/3] " Matt Turner
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Turner @ 2012-12-30  3:27 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: Matt Turner

From: Matt Turner <mattst88@gmail.com>

---
 modules/generic_stage_target.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
index 3597680..1c3ce1e 100644
--- a/modules/generic_stage_target.py
+++ b/modules/generic_stage_target.py
@@ -1668,7 +1668,7 @@ class generic_stage_target(generic_target):
 
 	def purge(self):
 		countdown(10,"Purging Caches ...")
-		if self.settings.has_key("PURGE") or self.settings.has_key("PURGEONLY") or self.settings.has_key("PURGETMPONLY"):
+		if any(k in self.settings for k in ("PURGE","PURGEONLY","PURGETMPONLY")):
 			print "clearing autoresume ..."
 			self.clear_autoresume()
 
-- 
1.7.8.6



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-30  3:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-30  3:27 [gentoo-catalyst] [PATCH 1/3] Use 'in' instead of deprecated has_key() Matt Turner
2012-12-30  3:27 ` [gentoo-catalyst] [PATCH 2/3] " Matt Turner
2012-12-30  3:27   ` [gentoo-catalyst] [PATCH 0/3] " Matt Turner
2012-12-30  3:27 ` [gentoo-catalyst] [PATCH 3/3] " Matt Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox