fix deprecation warning

This commit is contained in:
Junzi Sun 2018-04-19 09:45:56 +02:00
parent 9bfc116516
commit 8a54f927f6

View File

@ -1,14 +1,14 @@
from __future__ import absolute_import, print_function, division
import warnings
warnings.simplefilter('once', DeprecationWarning)
from pyModeS.decoder.bds.bds40 import *
from pyModeS.decoder.bds.bds50 import *
from pyModeS.decoder.bds.bds60 import *
from pyModeS.decoder.bds import infer
def BDS(msg):
import warnings
from pyModeS.decoder.bds import infer
warnings.simplefilter('always', DeprecationWarning)
warnings.warn("pms.ehs.BDS() is deprecated, use pms.bds.infer() instead", DeprecationWarning)
warnings.warn("pms.ehs.BDS() is deprecated, use pms.bds.infer() instead.", DeprecationWarning)
return infer(msg)
def icao(msg):