Permalink
Browse files

Fix bug serializing code objects w/ scope

  • Loading branch information...
ajdavis committed Mar 30, 2012
1 parent 49a748e commit 6aebf117f447fcab76c0f92b3ce122d4ef3337fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 bson/_cbsonmodule.c
View
@@ -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 6aebf11

Please sign in to comment.