From 354c99daa69a8cc4eff3b081ec2c0cdce9df102c Mon Sep 17 00:00:00 2001 From: bsimon Date: Mon, 4 May 2015 18:30:51 +0000 Subject: Updated files to run under python 2 and 3 git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39775 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/gui/updatewcs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/stwcs/gui/updatewcs.py') diff --git a/lib/stwcs/gui/updatewcs.py b/lib/stwcs/gui/updatewcs.py index f8f10d7..3dacb67 100644 --- a/lib/stwcs/gui/updatewcs.py +++ b/lib/stwcs/gui/updatewcs.py @@ -1,3 +1,4 @@ +from __future__ import print_function import os from astropy.io import fits @@ -68,7 +69,7 @@ def run(configObj=None): # Check to insure that there is a valid reference file to be used idctab = fits.getval(file, 'idctab') if not os.path.exists(fileutil.osfn(idctab)): - print 'No valid distortion reference file ',idctab,' found in ',file,'!' + print('No valid distortion reference file ',idctab,' found in ',file,'!') raise ValueError # Re-define 'cdict' to only have switches for steps supported by that instrument -- cgit