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/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/stwcs/__init__.py') diff --git a/lib/stwcs/__init__.py b/lib/stwcs/__init__.py index d48931a..208644f 100644 --- a/lib/stwcs/__init__.py +++ b/lib/stwcs/__init__.py @@ -14,10 +14,10 @@ transformation. wcsutil also provides functions for manipulating alternate WCS descriptions in the headers. """ -from __future__ import division # confidence high +from __future__ import absolute_import, print_function # confidence high import os -import distortion +from . import distortion from stsci.tools import fileutil from stsci.tools import teal @@ -28,6 +28,6 @@ from .version import * try: import gui teal.print_tasknames(gui.__name__, os.path.dirname(gui.__file__)) - print '\n' + print('\n') except: - print 'No TEAL-based tasks available for this package!' + print('No TEAL-based tasks available for this package!') -- cgit