From 4fbda13fa2d1785aa35b01b73d2b422731191ec2 Mon Sep 17 00:00:00 2001 From: Jeremy Koletar Date: Wed, 16 Jul 2014 14:17:24 -0500 Subject: [PATCH] distributed: Correctly msgpack int 0 and int 1 --- direct/src/distributed/AstronInternalRepository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index bf2d27cc9c..c87ff99a2d 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -29,9 +29,9 @@ def msgpack_length(dg, length, fix, maxfix, tag8, tag16, tag32): def msgpack_encode(dg, element): if element == None: dg.addUint8(0xc0) - elif element == False: + elif element is False: dg.addUint8(0xc2) - elif element == True: + elif element is True: dg.addUint8(0xc3) elif isinstance(element, (int, long)): if -32 <= element < 128: