Fix some miss spelling in raet

This commit is contained in:
Thomas S Hatch 2014-03-05 19:35:54 -07:00
parent f8537dc6b5
commit d2b4942393
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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())