Permalink
Browse files

fix bson length unpack, bson>msgpack

  • Loading branch information...
1 parent 4f4a516 commit e4b0907701166105627de45e5d38d78773bf9381 @rep committed Sep 25, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 py/pwrcall/serialize.py
  2. +1 −1 py/pwrcall/serialize_bson.py
View
2 py/pwrcall/serialize.py
@@ -7,8 +7,8 @@
from .info import addio, choose_ioproto
# import serializers
-import serialize_msgpack
import serialize_bson
+import serialize_msgpack
# json is python stdlib \o/
import json
View
2 py/pwrcall/serialize_bson.py
@@ -21,7 +21,7 @@ def feed(self, data):
def unpack(self):
if len(self.buf) < 4: raise StopIteration('stop')
- framelen = struct.unpack('!I', self.buf[:4])[0]
+ framelen = struct.unpack('<i', self.buf[:4])[0]
if len(self.buf) < framelen: raise StopIteration('stop')

0 comments on commit e4b0907

Please sign in to comment.