mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix some miss spelling in raet
This commit is contained in:
parent
f8537dc6b5
commit
d2b4942393
@ -191,7 +191,7 @@ class TxBody(Body):
|
|||||||
if bk == raeting.bodyKinds.json:
|
if bk == raeting.bodyKinds.json:
|
||||||
if self.data:
|
if self.data:
|
||||||
self.packed = json.dumps(self.data, separators=(',', ':'))
|
self.packed = json.dumps(self.data, separators=(',', ':'))
|
||||||
elif bk == raeting.bodykinds.msgpack:
|
elif bk == raeting.bodyKinds.msgpack:
|
||||||
if self.data:
|
if self.data:
|
||||||
self.packed = msgpack.dumps(self.data)
|
self.packed = msgpack.dumps(self.data)
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ HeadKind = namedtuple('HeadKind', HEAD_KINDS.keys())
|
|||||||
headKinds = HeadKind(**HEAD_KINDS) # headKinds.json is '00'
|
headKinds = HeadKind(**HEAD_KINDS) # headKinds.json is '00'
|
||||||
|
|
||||||
|
|
||||||
BODY_KINDS = odict([('nada', 0), ('json', 1), ('raw', 2), ('msgpck', 3),
|
BODY_KINDS = odict([('nada', 0), ('json', 1), ('raw', 2), ('msgpack', 3),
|
||||||
('unknown', 255)])
|
('unknown', 255)])
|
||||||
BODY_KIND_NAMES = odict((v, k) for k, v in BODY_KINDS.iteritems()) # inverse map
|
BODY_KIND_NAMES = odict((v, k) for k, v in BODY_KINDS.iteritems()) # inverse map
|
||||||
BodyKind = namedtuple('BodyKind', BODY_KINDS.keys())
|
BodyKind = namedtuple('BodyKind', BODY_KINDS.keys())
|
||||||
|
Loading…
Reference in New Issue
Block a user