fix deprecation warning
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
from __future__ import absolute_import, print_function, division
|
from __future__ import absolute_import, print_function, division
|
||||||
|
import warnings
|
||||||
|
warnings.simplefilter('once', DeprecationWarning)
|
||||||
|
|
||||||
from pyModeS.decoder.bds.bds40 import *
|
from pyModeS.decoder.bds.bds40 import *
|
||||||
from pyModeS.decoder.bds.bds50 import *
|
from pyModeS.decoder.bds.bds50 import *
|
||||||
from pyModeS.decoder.bds.bds60 import *
|
from pyModeS.decoder.bds.bds60 import *
|
||||||
|
from pyModeS.decoder.bds import infer
|
||||||
|
|
||||||
def BDS(msg):
|
def BDS(msg):
|
||||||
import warnings
|
warnings.warn("pms.ehs.BDS() is deprecated, use pms.bds.infer() instead.", DeprecationWarning)
|
||||||
from pyModeS.decoder.bds import infer
|
|
||||||
warnings.simplefilter('always', DeprecationWarning)
|
|
||||||
warnings.warn("pms.ehs.BDS() is deprecated, use pms.bds.infer() instead", DeprecationWarning)
|
|
||||||
return infer(msg)
|
return infer(msg)
|
||||||
|
|
||||||
def icao(msg):
|
def icao(msg):
|
||||||
|
|||||||
Reference in New Issue
Block a user