We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7feb8ce commit b69f6d4Copy full SHA for b69f6d4
bson/binary.py
@@ -125,8 +125,8 @@ class Binary(bytes):
125
the difference between what should be considered binary data and
126
what should be considered a string when we encode to BSON.
127
128
- Raises TypeError if `data` is not an instance of :class:`str`
129
- (:class:`bytes` in python 3) or `subtype` is not an instance of
+ Raises TypeError if `data` is not an instance of :class:`bytes`
+ (:class:`str` in python 2) or `subtype` is not an instance of
130
:class:`int`. Raises ValueError if `subtype` is not in [0, 256).
131
132
.. note::
0 commit comments