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 os
import warnings import warnings

View File

@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division
def tell(msg): def tell(msg):
from pyModeS import common, adsb, commb, bds 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 import pyModeS as pms
from pyModeS import common from pyModeS import common

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,8 +3,6 @@
# Heading and speed report # Heading and speed report
# ------------------------------------------ # ------------------------------------------
from __future__ import absolute_import, print_function, division
from pyModeS import common 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 # ELS - elementary surveillance
from pyModeS.decoder.bds.bds10 import * from pyModeS.decoder.bds.bds10 import *
from pyModeS.decoder.bds.bds17 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 import numpy as np
from textwrap import wrap 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 import warnings
from pyModeS.decoder.bds.bds40 import * 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.bds10 import *
from pyModeS.decoder.bds.bds17 import * from pyModeS.decoder.bds.bds17 import *
from pyModeS.decoder.bds.bds20 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.""" """Stream beast raw data from a TCP server, convert to mode-s messages."""
from __future__ import print_function, division
import os import os
import sys import sys
import time import time

View File

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

View File

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

View File

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

View File

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

View File

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