Skip to content
Browse files

Merge pull request #117 from ajdavis/bson-code-with-scope-fix

Fix bug serializing code objects w/ scope
  • Loading branch information...
2 parents 49a748e + 6aebf11 commit 68da94c3ed4a5365c70b5474a529fa7dd1f5c05d @behackett behackett committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bson/_cbsonmodule.c
View
2 bson/_cbsonmodule.c
@@ -506,7 +506,7 @@ static int _write_element_to_buffer(PyObject* self, buffer_t buffer, int type_by
return 0;
}
- if (!PyObject_Size(scope)) {
+ if (!PyDict_Size(scope)) {
Py_DECREF(scope);
*(buffer_get_buffer(buffer) + type_byte) = 0x0D;

0 comments on commit 68da94c

Please sign in to comment.
Something went wrong with that request. Please try again.