Skip to content

Commit b69f6d4

Browse files
jakirkhamShaneHarvey
authored andcommitted
Clarify that Binary expects data to be bytes (#399)
(cherry picked from commit 5950abf)
1 parent 7feb8ce commit b69f6d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/binary.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ class Binary(bytes):
125125
the difference between what should be considered binary data and
126126
what should be considered a string when we encode to BSON.
127127
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
128+
Raises TypeError if `data` is not an instance of :class:`bytes`
129+
(:class:`str` in python 2) or `subtype` is not an instance of
130130
:class:`int`. Raises ValueError if `subtype` is not in [0, 256).
131131
132132
.. note::

0 commit comments

Comments
 (0)