diff options
Diffstat (limited to 'lib/stwcs/gui')
-rw-r--r-- | lib/stwcs/gui/archive_headerlet.py | 4 | ||||
-rw-r--r-- | lib/stwcs/gui/extract_headerlet.py | 2 | ||||
-rw-r--r-- | lib/stwcs/gui/headerlet_summary.py | 2 | ||||
-rw-r--r-- | lib/stwcs/gui/updatewcs.py | 2 | ||||
-rw-r--r-- | lib/stwcs/gui/write_headerlet.py | 4 |
5 files changed, 7 insertions, 7 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) diff --git a/lib/stwcs/gui/extract_headerlet.py b/lib/stwcs/gui/extract_headerlet.py index 8751ff3..c807920 100644 --- a/lib/stwcs/gui/extract_headerlet.py +++ b/lib/stwcs/gui/extract_headerlet.py @@ -45,7 +45,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['output'] diff --git a/lib/stwcs/gui/headerlet_summary.py b/lib/stwcs/gui/headerlet_summary.py index 28c26c2..1b2245e 100644 --- a/lib/stwcs/gui/headerlet_summary.py +++ b/lib/stwcs/gui/headerlet_summary.py @@ -36,7 +36,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'] if headerlet.is_par_blank(cdict['columns']): diff --git a/lib/stwcs/gui/updatewcs.py b/lib/stwcs/gui/updatewcs.py index 912bf16..e818d96 100644 --- a/lib/stwcs/gui/updatewcs.py +++ b/lib/stwcs/gui/updatewcs.py @@ -46,7 +46,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['input'] del cdict['extname'] diff --git a/lib/stwcs/gui/write_headerlet.py b/lib/stwcs/gui/write_headerlet.py index 442650d..b9b17ad 100644 --- a/lib/stwcs/gui/write_headerlet.py +++ b/lib/stwcs/gui/write_headerlet.py @@ -60,7 +60,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'] @@ -77,4 +77,4 @@ def run(configObj=None): # author=None, descrip=None, history=None, # attach=True, clobber=False) headerlet.write_headerlet(flist, configObj['hdrname'], - **cdict)
\ No newline at end of file + **cdict) |