remove salt.payload.Serial

This commit is contained in:
cmcmarrow 2023-06-12 11:40:12 -05:00 committed by Pedro Algarvio
parent db228b3430
commit c070da586b
2 changed files with 1 additions and 20 deletions

View file

@ -0,0 +1 @@
Remove salt.payload.Serial

View file

@ -233,26 +233,6 @@ def dump(msg, fn_):
fn_.close()
class Serial:
"""
Create a serialization object, this object manages all message
serialization in Salt
"""
def __init__(self, *args, **kwargs):
salt.utils.versions.warn_until(
"Chlorine",
"The `salt.payload.Serial` class has been deprecated, "
"and is set to be removed in {version}. "
"Please use `salt.payload.loads` and `salt.payload.dumps`.",
)
loads = staticmethod(loads)
dumps = staticmethod(dumps)
dump = staticmethod(dump)
load = staticmethod(load)
class SREQ:
"""
Create a generic interface to wrap salt zeromq req calls.