From 05d1dce7d577d746482a7cb33d83703ab0b6e769 Mon Sep 17 00:00:00 2001 From: hack Date: Tue, 30 Apr 2013 20:55:57 +0000 Subject: This update removes all references to .has_key() method, including those for list and dict comprehension, but primarily to work with PyFITS 3.2.dev checked in on 29-Apr-2013. [Trac Ticket #1007] git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24552 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/gui/extract_headerlet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs/gui/extract_headerlet.py') 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'] -- cgit