Skip to content

Commit 5950abf

Browse files
jakirkhamShaneHarvey
authored andcommitted
Clarify that Binary expects data to be bytes (#399)
1 parent 5ebd293 commit 5950abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/binary.py

Lines changed: 2 additions & 2 deletions
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)