fiorix/mongo-async-python-driver — pull request #39 by chergert (2012-06-22 23:16:12+00:00)
Title: Fix query failure

The response_flag field of an OP_REPLY is incorrectly checked. It is checking for a value of 1 instead of bit-field 1 (index starting from zero in mongodb docs, so value of 2).

This now correctly throws an error instead of returning what is thought to be a valid document with an $err field.