fix deprecation warning
This commit is contained in:
parent
9bfc116516
commit
8a54f927f6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user