projects
/
catalyst.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use 'in' instead of deprecated has_key()
[catalyst.git]
/
modules
/
snapshot_target.py
diff --git
a/modules/snapshot_target.py
b/modules/snapshot_target.py
index 81ab083f3da1763c18e823ba3c1feab6ac5da536..e93a86a5b375442ee4971704c071a95230059a6e 100644
(file)
--- a/
modules/snapshot_target.py
+++ b/
modules/snapshot_target.py
@@
-31,11
+31,11
@@
class snapshot_target(generic_stage_target):
pass
def run(self):
- if
self.settings.has_key("PURGEONLY")
:
+ if
"PURGEONLY" in self.settings
:
self.purge()
return
- if
self.settings.has_key("PURGE")
:
+ if
"PURGE" in self.settings
:
self.purge()
self.setup()