fix CBOR doesn't roundtrip integer types
This commit is contained in:
parent
a771b54bc9
commit
727bf5a277
|
@ -120,7 +120,9 @@ class Serializer(object):
|
|||
|
||||
message_type = raw_msg[0]
|
||||
|
||||
if type(message_type) != int:
|
||||
if type(message_type) not in six.integer_types:
|
||||
# CBOR doesn't roundtrip number types
|
||||
# https://bitbucket.org/bodhisnarkva/cbor/issues/6/number-types-dont-roundtrip
|
||||
raise ProtocolError("invalid type {0} for WAMP message type".format(type(message_type)))
|
||||
|
||||
Klass = self.MESSAGE_TYPE_MAP.get(message_type)
|
||||
|
|
Loading…
Reference in New Issue