Skip to content

Commit a88a79f

Browse files
committed
Fix minor typos PYTHON-267
1 parent 258f818 commit a88a79f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bson/_cbsonmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ static PyObject* get_value(const char* buffer, int* position, int type,
994994
return NULL;
995995
}
996996

997-
if ((subtype == 3 || subtype == 4) && UUID) { // Encoded as UUID, not Binary
997+
if ((subtype == 3 || subtype == 4) && UUID) { // Encode as UUID, not Binary
998998
PyObject* kwargs;
999999
PyObject* args = PyTuple_New(0);
10001000
if (!args) {

bson/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class UUIDLegacy(Binary):
147147

148148
def __new__(cls, obj):
149149
if not isinstance(obj, UUID):
150-
raise TypeError("data must be an instance of uuid.UUID")
150+
raise TypeError("obj must be an instance of uuid.UUID")
151151
self = Binary.__new__(cls, obj.bytes, 3)
152152
self.__uuid = obj
153153
return self

0 commit comments

Comments
 (0)