remove python 2 imports

This commit is contained in:
Junzi Sun 2020-05-02 19:32:54 +02:00
parent ed18352c0c
commit 57307109e6
29 changed files with 2 additions and 53 deletions

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import, print_function, division
import os
import warnings

View File

@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division
def tell(msg):
from pyModeS import common, adsb, commb, bds

View File

@ -13,8 +13,6 @@ The ADS-B wrapper also imports functions from the following modules:
"""
from __future__ import absolute_import, print_function, division
import pyModeS as pms
from pyModeS import common

View File

@ -18,7 +18,6 @@
Common functions for Mode-S decoding
"""
from __future__ import absolute_import, print_function, division
import numpy as np
from pyModeS.extra import aero

View File

@ -4,9 +4,6 @@
# Airborn position
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -4,8 +4,6 @@
# Surface position
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -4,8 +4,6 @@
# Aircraft identitification and category
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -4,9 +4,6 @@
# Aircraft Airborn velocity
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS.decoder import common
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Data link capability report
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,9 +3,6 @@
# Common usage GICB capability report
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Aircraft identification
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,8 +3,6 @@
# ACAS active resolution advisory
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,9 +3,7 @@
# Selected vertical intention
# ------------------------------------------
from __future__ import absolute_import, print_function, division
import warnings
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Meteorological routine air report
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Meteorological hazard report
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Track and turn report
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Air-referenced state vector
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -3,8 +3,6 @@
# Heading and speed report
# ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common

View File

@ -19,8 +19,6 @@ The Comm-B wrapper imports all functions from the following modules:
"""
from __future__ import absolute_import, print_function, division
# ELS - elementary surveillance
from pyModeS.decoder.bds.bds10 import *
from pyModeS.decoder.bds.bds17 import *

View File

@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, division
import numpy as np
from textwrap import wrap

View File

@ -9,7 +9,6 @@ The EHS wrapper imports all functions from the following modules:
"""
from __future__ import absolute_import, print_function, division
import warnings
from pyModeS.decoder.bds.bds40 import *

View File

@ -10,8 +10,6 @@ The ELS wrapper imports all functions from the following modules:
"""
from __future__ import absolute_import, print_function, division
from pyModeS.decoder.bds.bds10 import *
from pyModeS.decoder.bds.bds17 import *
from pyModeS.decoder.bds.bds20 import *

View File

@ -1 +0,0 @@
from __future__ import absolute_import, print_function, division

View File

@ -1,6 +1,5 @@
"""Stream beast raw data from a TCP server, convert to mode-s messages."""
from __future__ import print_function, division
import os
import sys
import time

View File

@ -1,4 +1,3 @@
from __future__ import absolute_import, print_function, division
import os
import time
import datetime

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function, division
import os
import sys
import time

View File

@ -1,4 +1,3 @@
from __future__ import print_function, division
import curses
import numpy as np
import time

View File

@ -61,7 +61,7 @@ setup(
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
"Programming Language :: Python :: 2",
# "Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
ext_modules=cythonize(extensions),
@ -77,7 +77,7 @@ setup(
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=["numpy", "argparse", "pyzmq", "pyrtlsdr"],
install_requires=["numpy", "pyzmq", "pyrtlsdr"],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:

View File

@ -1,4 +1,3 @@
from __future__ import print_function
from pyModeS import commb, common, bds
# === Decode sample data file ===