Python 3 compatibility. PYTHON-494
This commit is contained in:
parent
8650bdcf5f
commit
caacb76131
@ -535,7 +535,7 @@ def decode_all(data, as_class=dict,
|
||||
except Exception:
|
||||
# Change exception type to InvalidBSON but preserve traceback.
|
||||
exc_type, exc_value, exc_tb = sys.exc_info()
|
||||
raise InvalidBSON, InvalidBSON(str(exc_value)), exc_tb
|
||||
raise InvalidBSON, str(exc_value), exc_tb
|
||||
if _use_c:
|
||||
decode_all = _cbson.decode_all
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user