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/distortion/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stwcs/distortion/models.py') diff --git a/lib/stwcs/distortion/models.py b/lib/stwcs/distortion/models.py index db48a9f..3e7d2b4 100644 --- a/lib/stwcs/distortion/models.py +++ b/lib/stwcs/distortion/models.py @@ -273,7 +273,7 @@ class IDCModel(GeometryModel): chip=chip,direction=direction,filter1=filter1,filter2=filter2, date=date, offtab=offtab) - if self.refpix.has_key('empty_model') and self.refpix['empty_model']: + if 'empty_model' in self.refpix and self.refpix['empty_model']: pass else: self.refpix['PSCALE'] = self.refpix['PSCALE'] * binned @@ -296,7 +296,7 @@ class WCSModel(GeometryModel): GeometryModel.__init__(self) - if header.has_key('rootname'): + if 'rootname' in header: self.name = header['rootname'] else: self.name = rootname -- cgit