Python 3 compatibility. PYTHON-494

This commit is contained in:
A. Jesse Jiryu Davis 2013-10-21 21:38:49 -04:00
parent 8650bdcf5f
commit caacb76131

View File

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