summaryrefslogtreecommitdiff
path: root/lib/stwcs/gui/archive_headerlet.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stwcs/gui/archive_headerlet.py')
-rw-r--r--lib/stwcs/gui/archive_headerlet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stwcs/gui/archive_headerlet.py b/lib/stwcs/gui/archive_headerlet.py
index 707d521..735baa4 100644
--- a/lib/stwcs/gui/archive_headerlet.py
+++ b/lib/stwcs/gui/archive_headerlet.py
@@ -49,7 +49,7 @@ def run(configObj=None):
# such as those above
cdict = configObj.dict()
# remove any rules defined for the TEAL interface
- if cdict.has_key("_RULES_"): del cdict['_RULES_']
+ if "_RULES_" in cdict: del cdict['_RULES_']
del cdict['_task_name_']
del cdict['filename']
del cdict['hdrname']
@@ -66,4 +66,4 @@ def run(configObj=None):
# author=None, descrip=None, history=None,
# hdrlet=None, clobber=False)
headerlet.archive_as_headerlet(configObj['filename'], configObj['hdrname'],
- **cdict) \ No newline at end of file
+ **cdict)