From a196d673dfcc203a64d3c586cd26f4495ddeefd5 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Tue, 28 Jun 2016 22:12:08 +0100 Subject: [PATCH] Fix imports for Python 3 --- pyModeS/__init__.py | 8 +++++--- pyModeS/adsb.py | 4 ++-- pyModeS/ehs.py | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pyModeS/__init__.py b/pyModeS/__init__.py index c34bd78..5be7b05 100644 --- a/pyModeS/__init__.py +++ b/pyModeS/__init__.py @@ -1,3 +1,5 @@ -from util import * -import adsb -import ehs +from __future__ import absolute_import, print_function, division + +from .util import * +from . import adsb +from . import ehs diff --git a/pyModeS/adsb.py b/pyModeS/adsb.py index fdb5d27..fa3e601 100644 --- a/pyModeS/adsb.py +++ b/pyModeS/adsb.py @@ -18,8 +18,8 @@ along with this program. If not, see . """ import math -import util -from util import crc +from . import util +from .util import crc def df(msg): diff --git a/pyModeS/ehs.py b/pyModeS/ehs.py index b3ec58f..2004afc 100644 --- a/pyModeS/ehs.py +++ b/pyModeS/ehs.py @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ -import util -from util import crc +from . import util +from .util import crc def df(msg):