Skip to content

Commit 3d63d58

Browse files
author
A. Jesse Jiryu Davis
committed
Work around a 2to3 bug more simply. PYTHON-494
1 parent d863ccf commit 3d63d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def decode_all(data, as_class=dict,
525525
raise e.with_traceback(exc_tb)
526526
else:
527527
# 2to3 mistranslates this.
528-
raise InvalidBSON, InvalidBSON(str(exc_value)), exc_tb
528+
raise InvalidBSON, str(exc_value), exc_tb
529529

530530
if _use_c:
531531
decode_all = _cbson.decode_all

0 commit comments

Comments
 (0)