Skip to content

Commit 8b6a1f8

Browse files
committed
Address review
1 parent bda0041 commit 8b6a1f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bson/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ def _encode_maxkey(name: bytes, dummy0: Any, dummy1: Any, dummy2: Any) -> bytes:
919919
if hasattr(_typ, "_type_marker"):
920920
_MARKERS[_typ._type_marker] = _ENCODERS[_typ]
921921

922+
922923
_BUILT_IN_TYPES = tuple(t for t in _ENCODERS)
923924

924925

@@ -1030,8 +1031,8 @@ def _dict_to_bson(
10301031
return _PACK_INT(len(encoded) + 5) + encoded + b"\x00"
10311032

10321033

1033-
# if _USE_C:
1034-
# _dict_to_bson = _cbson._dict_to_bson
1034+
if _USE_C:
1035+
_dict_to_bson = _cbson._dict_to_bson
10351036

10361037

10371038
_CODEC_OPTIONS_TYPE_ERROR = TypeError("codec_options must be an instance of CodecOptions")

0 commit comments

Comments
 (0)